10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/debugbar/subscribers/action_controller.rb', line 10
def process_action(event)
return if Debugbar::Current.ignore?
meta = event.payload
meta.delete :headers
request = meta.delete :request
response = meta.delete :response
meta.merge!({
duration: event.duration,
cpu_time: event.cpu_time,
idle_time: event.idle_time,
allocations: event.allocations,
})
Debugbar::Tracker.request = request
Debugbar::Tracker.response = response
Debugbar::Tracker.meta = meta
end
|