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

Fix poller rake task for Rails 8.0

Этот коммит содержится в:
Max Melentiev
2025-01-02 22:13:01 -05:00
родитель 814c4e7d1a
Коммит 7c3002266a
3 изменённых файлов: 8 добавлений и 1 удалений

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

@@ -15,6 +15,9 @@ namespace :telegram do
Rails.logger.extend ActiveSupport::Logger.broadcast console
end
end
# Routes are not loaded by default in Rails >= 8.0.
# Load them explicitly to identify a controller for a bot.
Rails.application.try(:reload_routes_unless_loaded)
Telegram::Bot::UpdatesPoller.start(ENV['BOT']&.to_sym || :default)
end