class ApplicationController

Public Instance Methods

consider_all_requests_local() click to toggle source
# File lib/hoptoad_notifier/tasks.rb, line 56
def consider_all_requests_local
  false
end
exception_class() click to toggle source

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
local_request?() click to toggle source
# File lib/hoptoad_notifier/tasks.rb, line 60
def local_request?
  false
end
logger() click to toggle source
# File lib/hoptoad_notifier/rails3_tasks.rb, line 65
def logger
  nil
end
rescue_action(exception) click to toggle source
# File lib/hoptoad_notifier/tasks.rb, line 49
def rescue_action(exception)
  rescue_action_in_public exception
end
test_hoptoad() click to toggle source
# 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
verify() click to toggle source

Ensure we actually have an action to go to.

# File lib/hoptoad_notifier/rails3_tasks.rb, line 48
def verify; end