Sha256: ca970d69ba5e4bc5e518ec8781b3dd26bb7a22595ceda4319577149e00dd450a
Contents?: true
Size: 532 Bytes
Versions: 20
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module GoodJob class CronEntriesController < GoodJob::ApplicationController def index @cron_entries = CronEntry.all end def show @cron_entry = CronEntry.find(params[:cron_key]) @jobs_filter = JobsFilter.new(params, @cron_entry.jobs) end def enqueue @cron_entry = CronEntry.find(params[:cron_key]) @cron_entry.enqueue(Time.current) redirect_back(fallback_location: cron_entries_path, notice: "Cron entry has been enqueued.") end end end
Version data entries
20 entries across 20 versions & 1 rubygems