Skip to content

Commit

Permalink
Use the derived request_method from AD::Request rather than the raw R…
Browse files Browse the repository at this point in the history
…EQUEST_METHOD from rack.

This takes _method into account so the log shows the method which ActionController sees.
  • Loading branch information
NZKoz committed Jan 18, 2011
1 parent 6854358 commit 199d1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/rack/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def before_dispatch(env)
request = ActionDispatch::Request.new(env)
path = request.fullpath

info "\n\nStarted #{env["REQUEST_METHOD"]} \"#{path}\" " \
info "\n\nStarted #{request.request_method} \"#{path}\" " \
"for #{request.ip} at #{Time.now.to_default_s}"
end

Expand Down

0 comments on commit 199d1ab

Please sign in to comment.