Class: MissionControl::Jobs::Queues::PausesController

Inherits:
ApplicationController
  • Object
show all
Includes:
MissionControl::Jobs::QueueScoped
Defined in:
app/controllers/mission_control/jobs/queues/pauses_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#destroyObject



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