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