spec/dummy/app/controllers/break_controller.rb in crashlog-1.0.0 vs spec/dummy/app/controllers/break_controller.rb in crashlog-1.0.1
- old
+ new
@@ -5,6 +5,15 @@
def really_broken
raise RuntimeError, "You hit the broken route"
end
+ def manual_notify
+ raise RuntimeError, "Manual exception"
+ rescue => e
+ notify_crashlog(e)
+ end
+
+ def current_user
+ CurrentUser.new
+ end
end