Class: DelayHenka::Web::Admin::ScheduledActionsController
- Inherits:
-
Object
- Object
- DelayHenka::Web::Admin::ScheduledActionsController
- Defined in:
- app/controllers/delay_henka/web/admin/scheduled_actions_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
12 13 14 15 |
# File 'app/controllers/delay_henka/web/admin/scheduled_actions_controller.rb', line 12 def destroy @action.destroy! redirect_back fallback_location: web_admin_scheduled_actions_path, flash: { success: 'Destroy succeeded' } end |
#index ⇒ Object
8 9 10 |
# File 'app/controllers/delay_henka/web/admin/scheduled_actions_controller.rb', line 8 def index @actions = ScheduledAction.order('created_at DESC') end |