lib/rufus/sc/scheduler.rb in rufus-scheduler-2.0.2 vs lib/rufus/sc/scheduler.rb in rufus-scheduler-2.0.3

- old
+ new

@@ -31,11 +31,11 @@ module Rufus::Scheduler # This gem's version # - VERSION = '2.0.2' + VERSION = '2.0.3' # # It's OK to pass an object responding to :trigger when scheduling a job # (instead of passing a block). # @@ -263,10 +263,10 @@ q end def combine_opts (schedulable, opts) - if schedulable.respond_to?(:trigger) + if schedulable.respond_to?(:trigger) || schedulable.respond_to?(:call) opts[:schedulable] = schedulable elsif schedulable != nil