Class: MissionControl::Jobs::Queues::PausesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- MissionControl::Jobs::Queues::PausesController
- Includes:
- MissionControl::Jobs::QueueScoped
- Defined in:
- app/controllers/mission_control/jobs/queues/pauses_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/mission_control/jobs/queues/pauses_controller.rb', line 4 def create @queue.pause redirect_back fallback_location: application_queues_url(@application) end |
#destroy ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/mission_control/jobs/queues/pauses_controller.rb', line 10 def destroy @queue.resume redirect_back fallback_location: application_queues_url(@application) end |