Module: Sinatra::Exceptional
- Defined in:
- lib/sinatra/exceptional.rb,
lib/sinatra/exceptional/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
60 61 62 63 64 65 66 67 |
# File 'lib/sinatra/exceptional.rb', line 60 def self.registered(app) app.helpers do def report_exception ::Exceptional.configure settings.[:key] unless ::Exceptional::Config.api_key ::Exceptional::Catcher.handle_with_sinatra env['sinatra.error'], ENV, request, settings. end end end |