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