Sha256: d62d53c1b4bda0a0d1bdb80e9a1079928c8a6e4abb724b8dca88b0eb7584cf36
Contents?: true
Size: 520 Bytes
Versions: 8
Compression:
Stored size: 520 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[: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
8 entries across 8 versions & 1 rubygems