Skip to content
Browse files

Use the derived request_method from AD::Request rather than the raw R…

…EQUEST_METHOD from rack.

This takes _method into account so the log shows the method which ActionController sees.
  • Loading branch information...
1 parent a58670b commit 64c1cb3b3c587770111ad0839103cf4374ba13c2 @NZKoz NZKoz committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/rack/logger.rb
View
2 railties/lib/rails/rack/logger.rb
@@ -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

0 comments on commit 64c1cb3

Please sign in to comment.
Something went wrong with that request. Please try again.