Sha256: 105faa152d693f09e8c3bd801a2eb55aa6509c83c6c966294f0f2b18f4d7130a
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true module Panoptic class Jobs::FailedController < ApplicationController layout "panoptic/jobs", only: :index def index @pagy, @jobs = pagy( Panoptic::FailedJob.order(created_at: :asc) ) end def show @job = Panoptic::FailedJob.find(params[:id]) end def destroy @job = Panoptic::FailedJob.find(params[:id]) if @job.destroy redirect_back fallback_location: failed_jobs_path, notice: "Job was successfully deleted." else redirect_back fallback_location: failed_jobs_path, alert: @job.errors.full_messages.to_sentence end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
panoptic-0.5.0 | app/controllers/panoptic/jobs/failed_controller.rb |