lib/telegram/bot/updates_controller/instrumentation.rb in telegram-bot-0.12.4 vs lib/telegram/bot/updates_controller/instrumentation.rb in telegram-bot-0.13.0
- old
+ new
@@ -2,15 +2,16 @@
module Bot
class UpdatesController
# Most methods are taken from ActionController::Instrumentation,
# some are slightly modified.
module Instrumentation
- class << self
- def prepended(base)
- base.send :config_accessor, :logger
- base.extend ClassMethods
- end
+ extend ActiveSupport::Concern
+ included do
+ config_accessor :logger
+ end
+
+ class << self
def instrument(action, *args, &block)
ActiveSupport::Notifications.instrument(
"#{action}.updates_controller.bot.telegram",
*args,
&block