Sha256: 5ba59ddc5a83d8bafd777438e424b3ef561da9b551c84e9140f852f0af945622

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

require 'active_support/rescuable'

module Telegram
  module Bot
    class UpdatesController
      module Rescue
        extend ActiveSupport::Concern
        include ActiveSupport::Rescuable

        private

        def process_action(*)
          super
        rescue Exception => exception # rubocop:disable Lint/RescueException
          rescue_with_handler(exception) || raise
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-0.16.5 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.16.4 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.16.3 lib/telegram/bot/updates_controller/rescue.rb