Parent

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
# File lib/hoptoad_notifier/tasks.rb, line 64
def exception_class
  exception_name = ENV['EXCEPTION'] || "HoptoadTestingException"
  exception_name.split("::").inject(Object){|klass, name| klass.const_get(name)}
rescue
  Object.const_set(exception_name.gsub(/:+/, "_"), 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/tasks.rb, line 71
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/tasks.rb, line 44
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/tasks.rb, line 54
def verify; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.