1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-07 19:35:52 +03:00

Sessions for UpdatesController

Этот коммит содержится в:
Max Melentiev
2016-02-28 21:51:59 +06:00
родитель 298947f970
Коммит bff412360e
5 изменённых файлов: 153 добавлений и 5 удалений

Просмотреть файл

@@ -7,6 +7,10 @@ module Telegram
class UpdatesController < AbstractController::Base
abstract!
require 'telegram/bot/updates_controller/session'
require 'telegram/bot/updates_controller/log_subscriber'
require 'telegram/bot/updates_controller/instrumentation'
include AbstractController::Callbacks
# Redefine callbacks with default terminator.
if ActiveSupport.gem_version >= Gem::Version.new('5')
@@ -19,10 +23,8 @@ module Telegram
end
include AbstractController::Translation
require 'telegram/bot/updates_controller/log_subscriber'
require 'telegram/bot/updates_controller/instrumentation'
prepend Instrumentation
extend Session::ConfigMethods
autoload :TypedUpdate, 'telegram/bot/updates_controller/typed_update'