提交 c4617217 编写于 作者: A Akira Matsuda

Reduce block execution

上级 f0fdeaa1
......@@ -30,9 +30,9 @@ def process_action(*)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册