Permalink
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 6854358 commit 199d1abeb2908a48b161f7ae3be6a0b078619a40 @NZKoz NZKoz committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 199d1ab

Please sign in to comment.