Class: GroundControl::Inertia::DispatchesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GroundControl::Inertia::DispatchesController
- Defined in:
- app/controllers/ground_control/inertia/dispatches_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/ground_control/inertia/dispatches_controller.rb', line 6 def create job = ActiveJob.jobs.find_by_id(params[:job_id]) job.dispatch redirect_back fallback_location: ground_control_inertia.root_path, notice: "Dispatched job #{job.job_id}" end |