class ActionDispatch::Request

def request_method

original.
the application should use), this method returns the overridden value, not the
converted to a GET, or if a _method parameter was used to determine the method
method was overridden by a middleware (for instance, if a HEAD request was
Returns the HTTP method that the application should see. In the case where the
def request_method
  @request_method ||= check_method(super)
end