diff options
author | Michael Koziarski <michael@koziarski.com> | 2011-01-18 14:41:21 +1300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2011-01-18 14:43:54 +1300 |
commit | 199d1abeb2908a48b161f7ae3be6a0b078619a40 (patch) | |
tree | fea88e40643caa84456d88c1c02ec69e34a2f5b6 /railties/lib/rails/rack | |
parent | 685435896468f394288e659c90be53b619d17831 (diff) | |
download | rails-199d1abeb2908a48b161f7ae3be6a0b078619a40.tar.gz rails-199d1abeb2908a48b161f7ae3be6a0b078619a40.tar.bz2 rails-199d1abeb2908a48b161f7ae3be6a0b078619a40.zip |
Use the derived request_method from AD::Request rather than the raw REQUEST_METHOD from rack.
This takes _method into account so the log shows the method which ActionController sees.
Diffstat (limited to 'railties/lib/rails/rack')
-rw-r--r-- | railties/lib/rails/rack/logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/rack/logger.rb b/railties/lib/rails/rack/logger.rb index b3dc1f894c..32acc66f10 100644 --- a/railties/lib/rails/rack/logger.rb +++ b/railties/lib/rails/rack/logger.rb @@ -21,7 +21,7 @@ module Rails 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 |