# File lib/hoptoad_notifier/tasks.rb, line 56 def consider_all_requests_local false end
def local_request?
false
end
# File lib/hoptoad_notifier/rails3_tasks.rb, line 58 def exception_class exception_name = ENV['EXCEPTION'] || "HoptoadTestingException" Object.const_get(exception_name) rescue Object.const_set(exception_name, Class.new(Exception)) end
# File lib/hoptoad_notifier/tasks.rb, line 60 def local_request? false end
# File lib/hoptoad_notifier/rails3_tasks.rb, line 65 def logger nil end
# File lib/hoptoad_notifier/tasks.rb, line 49 def rescue_action(exception) rescue_action_in_public exception end
# File lib/hoptoad_notifier/rails3_tasks.rb, line 38 def test_hoptoad puts "Raising '#{exception_class.name}' to simulate application failure." raise exception_class.new, 'Testing hoptoad via "rake hoptoad:test". If you can see this, it works.' end
Ensure we actually have an action to go to.
# File lib/hoptoad_notifier/rails3_tasks.rb, line 48 def verify; end