Permalink
Browse files

Merge pull request #6 from exploid/master

Sinatra::Base#options is deprecated and will be removed, use #settings instead.
  • Loading branch information...
2 parents 4759fec + 789c9be commit d72fa85cec730bff4a940b25386991eba114feb3 @kyledrake kyledrake committed Dec 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sinatra/toadhopper.rb
@@ -21,8 +21,8 @@ def post_error_to_airbrake!
:params => request.params,
:session => session.to_hash,
:environment => ENV.to_hash,
- :framework_env => options.environment.to_s,
- :project_root => options.root,
+ :framework_env => settings.environment.to_s,
+ :project_root => settings.root,
:notifier_name => (notifier_name = "toadhopper-sinatra"),
:notifier_version => VERSION,
:notifier_url => 'http://github.com/toolmantim/toadhopper-sinatra'

0 comments on commit d72fa85

Please sign in to comment.