class Airbrake::Rails::ActionCable::NotifyCallback

@since v8.3.0 @api private

Public Class Methods

call(channel, block) click to toggle source
# File lib/airbrake/rails/action_cable/notify_callback.rb, line 9
def self.call(channel, block)
  block.call
rescue Exception => ex # rubocop:disable Lint/RescueException
  notice = Airbrake.build_notice(ex)
  notice[:context][:component] = 'action_cable'
  notice[:context][:action] = channel.channel_name
  Airbrake.notify(notice)

  raise ex
end