diff options
author | Akira Matsuda <ronnie@dio.jp> | 2019-07-31 17:28:32 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2019-07-31 17:41:34 +0900 |
commit | c46172171b7beadcd28d71c1d5473b1bde0f7ede (patch) | |
tree | 9ee035199286b7512cb99e667f88fb5b4da992fa /actionpack/lib/action_controller/metal | |
parent | f0fdeaa175ccb1230b9027d25d7d4cfe62d04e46 (diff) | |
download | rails-c46172171b7beadcd28d71c1d5473b1bde0f7ede.tar.gz rails-c46172171b7beadcd28d71c1d5473b1bde0f7ede.tar.bz2 rails-c46172171b7beadcd28d71c1d5473b1bde0f7ede.zip |
Reduce block execution
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/instrumentation.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/instrumentation.rb b/actionpack/lib/action_controller/metal/instrumentation.rb index 9ef70f769d..594c4c1dc8 100644 --- a/actionpack/lib/action_controller/metal/instrumentation.rb +++ b/actionpack/lib/action_controller/metal/instrumentation.rb @@ -30,9 +30,9 @@ module ActionController ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload) ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload| - super.tap do - payload[:status] = response.status - end + result = super + payload[:status] = response.status + result ensure append_info_to_payload(payload) end |