lib/airbrake/railtie.rb in airbrake-3.2.0 vs lib/airbrake/railtie.rb in airbrake-3.2.1
- old
+ new
@@ -39,8 +39,14 @@
#
require 'airbrake/rails/controller_methods'
include Airbrake::Rails::ControllerMethods
end
+
+ if defined?(::ActionController::Base)
+ require 'airbrake/rails/javascript_notifier'
+
+ ::ActionController::Base.send(:include, Airbrake::Rails::JavascriptNotifier)
+ end
end
end
end