Sha256: e3c95cd7aef2474c564d24ddea5741bb294fe1609039d353ed094629644ac071

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

module ActionMessenger
  module Rescuable
    extend ActiveSupport::Concern
    include ActiveSupport::Rescuable

    # call rescue_from when an exception occurs
    def handle_exceptions
      yield
    rescue => e
      rescue_with_handler(e) || raise(e)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
action_messenger-0.1.4 lib/action_messenger/rescuable.rb
action_messenger-0.1.3 lib/action_messenger/rescuable.rb
action_messenger-0.1.2 lib/action_messenger/rescuable.rb
action_messenger-0.1.1 lib/action_messenger/rescuable.rb
action_messenger-0.0.2 lib/action_messenger/rescuable.rb
action_messenger-0.0.1 lib/action_messenger/rescuable.rb