lib/bullet/action_controller.rb in bullet-1.7.1 vs lib/bullet/action_controller.rb in bullet-1.7.2
- old
+ new
@@ -24,11 +24,9 @@
::ActionController::Base.class_eval do
alias_method :origin_process, :process
def process(request, response, method = :perform_action, *arguments)
Bullet.start_request
response = origin_process(request, response, method = :perform_action, *arguments)
- puts response.body
- puts response.headers
if Bullet.notification?
if response.headers["type"] and response.headers["type"].include? 'text/html' and response.body =~ %r{<html.*</html>}m
response.body <<= Bullet.javascript_notification
response.headers["Content-Length"] = response.body.length.to_s