Permalink
Browse files

Use Resque::Failure::Hoptoad for failed resque jobs

  • Loading branch information...
1 parent 0a183be commit 548750e28e7c1e9eb4b3ec8ce2f39dab10f569fb @jasonm committed Nov 3, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 config/initializers/hoptoad.rb
@@ -1,3 +1,7 @@
-HoptoadNotifier.configure do |config|
- config.api_key = 'f12b4bfa6c4e2ea65f55e8f871ccf1f3'
+require 'resque/failure/hoptoad'
+
+[HoptoadNotifier, Resque::Failure::Hoptoad].each do |notifier|
+ notifier.configure do |config|
+ config.api_key = 'f12b4bfa6c4e2ea65f55e8f871ccf1f3'
+ end
end

0 comments on commit 548750e

Please sign in to comment.