Class: GroundControl::Inertia::Queues::PausesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GroundControl::Inertia::Queues::PausesController
- Defined in:
- app/controllers/ground_control/inertia/queues/pauses_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/ground_control/inertia/queues/pauses_controller.rb', line 9 def create @queue.pause redirect_back fallback_location: ground_control_inertia.queues_path, notice: "Queue paused" end |
#destroy ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/ground_control/inertia/queues/pauses_controller.rb', line 15 def destroy @queue.resume redirect_back fallback_location: ground_control_inertia.queues_path, notice: "Queue resumed" end |