module Bullet class ActionController def self.enable case ::Rails::VERSION::STRING when /^2.3/ ::ActionController::Dispatcher.class_eval do class <}m response.body <<= Bullet.javascript_notification response.headers["Content-Length"] = response.body.length.to_s end Bullet.growl_notification Bullet.log_notification(request.params['PATH_INFO']) end Bullet.end_request response end end else puts "Gem Bullet: Unsupported rails version" end end end end