Sha256: 558aa3611141fb1f8115a9730d23d2d0e8895dc306bf1526ae18d25c0fdb5a64

Contents?: true

Size: 418 Bytes

Versions: 16

Compression:

Stored size: 418 Bytes

Contents

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 RescueException
          rescue_with_handler(exception) || raise
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
telegram-bot-0.16.1 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.16.0 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.7 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.6 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.4 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.3 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.2 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.1 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.15.0 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.14.4 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.14.3 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.14.2 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.14.1 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.14.0 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.13.1 lib/telegram/bot/updates_controller/rescue.rb
telegram-bot-0.13.0 lib/telegram/bot/updates_controller/rescue.rb