lib/rocket_job/plugins/cron.rb in rocketjob-2.0.0 vs lib/rocket_job/plugins/cron.rb in rocketjob-2.1.1
- old
+ new
@@ -105,9 +105,12 @@
included do
include Restart
key :cron_schedule, String
+ # Make cron_schedule editable for scheduled jobs
+ public_rocket_job_properties :cron_schedule
+
before_create :rocket_job_set_run_at
validates_presence_of :cron_schedule
validates_each :cron_schedule do |record, attr, value|
begin