Skip to content

Commit

Permalink
Give back its priority to opts[:_t]
Browse files Browse the repository at this point in the history
in CronLine#initialize
  • Loading branch information
jmettraux committed May 16, 2017
1 parent 63511c8 commit fd57a57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rufus/scheduler/jobs.rb
Expand Up @@ -612,7 +612,10 @@ def initialize(scheduler, cronline, opts, block)

super(scheduler, cronline, opts, block)

@cron_line = cronline.is_a?(CronLine) ? cronline : opts[:_t] || CronLine.new(cronline)
@cron_line =
opts[:_t] ||
(cronline.is_a?(CronLine) ? cronline : CronLine.new(cronline))

set_next_time(nil)
end

Expand Down

0 comments on commit fd57a57

Please sign in to comment.