Sha256: efd4be3fa2e13057179132140fbbfbb5b5b6d97177ed433272907c5d39bd73b6
Contents?: true
Size: 421 Bytes
Versions: 19
Compression:
Stored size: 421 Bytes
Contents
class HandledController < ActionController::Base protect_from_forgery with: :exception def unthrown Bugsnag.notify(RuntimeError.new("handled unthrown error")) render json: {} end def thrown begin generate_unhandled_error rescue Exception => e Bugsnag.notify(e) end render json: {} end def string_notify Bugsnag.notify("handled string") render json: {} end end
Version data entries
19 entries across 12 versions & 1 rubygems