module HoptoadNotifier::Rails::ErrorLookup
Private Instance Methods
rescue_action_locally_with_hoptoad(exception)
click to toggle source
# File lib/hoptoad_notifier/rails/error_lookup.rb, line 13 def rescue_action_locally_with_hoptoad(exception) result = rescue_action_locally_without_hoptoad(exception) if HoptoadNotifier.configuration.development_lookup path = File.join(File.dirname(__FILE__), '..', '..', 'templates', 'rescue.erb') notice = HoptoadNotifier.build_lookup_hash_for(exception, hoptoad_request_data) result << @template.render( :file => path, :use_full_path => false, :locals => { :host => HoptoadNotifier.configuration.host, :api_key => HoptoadNotifier.configuration.api_key, :notice => notice }) end result end