We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9152169 commit 04d66fdCopy full SHA for 04d66fd
app/controllers/mission_control/jobs/discards_controller.rb
@@ -3,7 +3,7 @@ class MissionControl::Jobs::DiscardsController < MissionControl::Jobs::Applicati
3
4
def create
5
@job.discard
6
- redirect_to application_jobs_url(@application, :failed), notice: "Discarded job with id #{@job.job_id}"
+ redirect_back fallback_location: application_jobs_url(@application, :failed), notice: "Discarded job with id #{@job.job_id}"
7
end
8
9
private
0 commit comments