Class: DelayHenka::Web::Admin::ScheduledActionsController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/delay_henka/web/admin/scheduled_actions_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



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

#indexObject



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