tablatom (owner)

Revisions

gist: 131155 Download_button fork
public
Public Clone URL: git://gist.github.com/131155.git
Ruby
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if RAILS_GEM_VERSION == '2.3.2'
  module ActionController
    module Routing
      class RouteSet
        def extract_request_environment(request)
          method = request.method
          if method == :post && request.env["QUERY_STRING"] == "_method=put"
            method = :put
          end
          
          { :method => method }
        end
      end
    end
  end
end