Sha256: eaa6c18e39e44485a5e14b32c65277aadebb3b6d109e6a1463667140b6c01f9b
Contents?: true
Size: 906 Bytes
Versions: 19
Compression:
Stored size: 906 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]) use_original_locale { @cron_entry.enqueue(Time.current) } redirect_back(fallback_location: cron_entries_path, notice: t(".notice")) end def enable @cron_entry = CronEntry.find(params[:cron_key]) @cron_entry.enable redirect_back(fallback_location: cron_entries_path, notice: t(".notice")) end def disable @cron_entry = CronEntry.find(params[:cron_key]) @cron_entry.disable redirect_back(fallback_location: cron_entries_path, notice: t(".notice")) end end end
Version data entries
19 entries across 19 versions & 1 rubygems