Class: TelegramBotEngine::Admin::DashboardController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- TelegramBotEngine::Admin::DashboardController
- Defined in:
- app/controllers/telegram_bot_engine/admin/dashboard_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/telegram_bot_engine/admin/dashboard_controller.rb', line 6 def show @total_subscriptions = Subscription.count @active_subscriptions = Subscription.active.count @inactive_subscriptions = @total_subscriptions - @active_subscriptions @bot_username = bot_username end |