aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-02-09 12:12:05 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2016-02-09 12:12:15 -0800
commitd5c6babd9e139deed5d43c35a41b2af5d73376ba (patch)
tree70ffb6d39721e399b46c1cc005e2e268003fea63
parent6454ee2c698b2401c1d9358252c17a9e7e8bf88b (diff)
downloadrails-d5c6babd9e139deed5d43c35a41b2af5d73376ba.tar.gz
rails-d5c6babd9e139deed5d43c35a41b2af5d73376ba.tar.bz2
rails-d5c6babd9e139deed5d43c35a41b2af5d73376ba.zip
AC::Request#format always returns a value, so we do not need to try
-rw-r--r--actionpack/lib/action_controller/metal/instrumentation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/instrumentation.rb b/actionpack/lib/action_controller/metal/instrumentation.rb
index 3dbf34eb2a..f66e3efffe 100644
--- a/actionpack/lib/action_controller/metal/instrumentation.rb
+++ b/actionpack/lib/action_controller/metal/instrumentation.rb
@@ -19,7 +19,7 @@ module ActionController
:controller => self.class.name,
:action => self.action_name,
:params => request.filtered_parameters,
- :format => request.format.try(:ref),
+ :format => request.format.ref,
:method => request.request_method,
:path => (request.fullpath rescue "unknown")
}