lib/bullet/rack.rb in bullet-2.0.1 vs lib/bullet/rack.rb in bullet-2.1.0
- old
+ new
@@ -14,10 +14,10 @@
if Bullet.notification?
if status == 200 and !response.body.frozen? and check_html?(headers, response)
response_body = response.body << Bullet.gather_inline_notifications
headers['Content-Length'] = response_body.length.to_s
end
- Bullet.perform_out_of_channel_notifications
+ Bullet.perform_out_of_channel_notifications(env)
end
response_body ||= response.body
Bullet.end_request
no_browser_cache(headers) if Bullet.disable_browser_cache
[status, headers, [response_body]]