Browse files

Merge pull request #77 from kosmatov/master

Bullet notifications to airbrake
  • Loading branch information...
2 parents 58d0c47 + eeb540d commit f1ee1697f7a4814a857c890f57a6634609ddb527 @flyerhzm committed Sep 28, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −2 README.textile
  2. +1 −1 lib/bullet.rb
@@ -50,17 +50,19 @@ config.after_initialize do
:receiver => '',
:show_online_status => true }
Bullet.rails_logger = true
+ Bullet.airbrake = true
Bullet.disable_browser_cache = true
The notifier of bullet is a wrap of "uniform_notifier":
-The code above will enable all six of the Bullet notification systems:
+The code above will enable all seven of the Bullet notification systems:
* <code>Bullet.enable</code>: enable Bullet gem, otherwise do nothing
* <code>Bullet.alert</code>: pop up a JavaScript alert in the browser
* <code>Bullet.bullet_logger</code>: log to the Bullet log file (Rails.root/log/bullet.log)
* <code>Bullet.rails_logger</code>: add warnings directly to the Rails log
+* <code>Bullet.airbrake</code>: add notifications to airbrake
* <code>Bullet.console</code>: log warnings to your browser's console.log (Safari/Webkit browsers or Firefox w/Firebug installed)
* <code>Bullet.growl</code>: pop up Growl warnings if your system has Growl installed. Requires a little bit of configuration
* <code>Bullet.xmpp</code>: send XMPP/Jabber notifications to the receiver indicated. Note that the code will currently not handle the adding of contacts, so you will need to make both accounts indicated know each other manually before you will receive any notifications. If you restart the development server frequently, the 'coming online' sound for the bullet account may start to annoy - in this case set :show_online_status to false; you will still get notifications, but the bullet account won't announce it's online status anymore.
@@ -101,7 +103,7 @@ These two lines are notifications that unused eager loadings have been encounter
-h2. Growl and XMPP/Jabber Support
+h2. Growl, XMPP/Jabber and Airbrake Support
see "":
@@ -33,7 +33,7 @@ class <<self
attr_accessor :enable, :disable_browser_cache
attr_reader :notification_collector
- delegate :alert=, :console=, :growl=, :rails_logger=, :xmpp=, :to => UniformNotifier
+ delegate :alert=, :console=, :growl=, :rails_logger=, :xmpp=, :airbrake=, :to => UniformNotifier
DETECTORS = [ Bullet::Detector::NPlusOneQuery,

0 comments on commit f1ee169

Please sign in to comment.