example.rb in toadhopper-sinatra-1.0.5 vs example.rb in toadhopper-sinatra-2.0
- old
+ new
@@ -1,14 +1,14 @@
require 'sinatra'
require 'sinatra/toadhopper'
-set :toadhopper, :api_key => "apikey", :filters => /password/
+set :airbrake, :api_key => "apikey", :filters => /password/
post "/register" do
session[:user_id] = 42
raise "Kaboom!"
end
error do
- post_error_to_hoptoad!
+ post_error_to_airbrake!
"Ouch, that hurt."
end