Skip to content

Commit

Permalink
Added a check for HoptoadNotifier::Catcher in the ApplicationController
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Nov 19, 2008
1 parent cee2e9b commit 9b00fbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/hoptoad_notifier_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ namespace :hoptoad do

class HoptoadTestingException < RuntimeError; end

unless ApplicationController.ancestors.include? HoptoadNotifier::Catcher
puts "You have not included HoptoadNotifier::Catcher in your ApplicationController!"
exit
end

puts 'Setting up the Controller.'
class ApplicationController
# This is to bypass any filters that may prevent access to the action.
Expand Down

0 comments on commit 9b00fbd

Please sign in to comment.