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

Don't use Rails.cache as fallback for session_store

It's NullStore in development by default so session does not work,
and indeed should not be dependent.
Этот коммит содержится в:
Max Melentiev
2017-10-06 11:07:11 +03:00
родитель ef4f3caa5f
Коммит e529a79339
4 изменённых файлов: 25 добавлений и 1 удалений

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

@@ -18,7 +18,7 @@ module Telegram
ActiveSupport.on_load('telegram.bot.updates_controller') do
self.logger = options.logger || Rails.logger
self.session_store = options.session_store || Rails.cache
self.session_store = options.session_store if options.session_store
end
end