зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
* Update rubopcop [WIP] * Further rubocop fixes * Fix rubocop-rails cops * Fix spec * Disable rubocop suggestions * Run rubocop in github actions rather than in codeclimate
23 строки
454 B
Ruby
23 строки
454 B
Ruby
# 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
|