From 199d1abeb2908a48b161f7ae3be6a0b078619a40 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 18 Jan 2011 14:41:21 +1300 Subject: 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. --- railties/lib/rails/rack/logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/rack') 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 -- cgit v1.2.3