lib/airbrake/sinatra.rb in airbrake-3.1.8 vs lib/airbrake/sinatra.rb in airbrake-3.1.9

- old
+ new

@@ -22,13 +22,12 @@ def initialize(app) super Airbrake.configuration.environment_name = "#{app.settings.environment}" Airbrake.configuration.framework = "Sinatra: #{::Sinatra::VERSION}" - end - - def framework_exception - @env['sinatra.error'] end + def framework_exception(env) + env['sinatra.error'] + end end end