lib/resque_scheduler/plugin.rb in resque-scheduler-2.0.0.h vs lib/resque_scheduler/plugin.rb in resque-scheduler-2.0.0
- old
+ new
@@ -12,10 +12,10 @@
results.all? { |result| result != false }
end
def method_missing(method_name, *args, &block)
- if method_name =~ /^run_(.*)_hooks$/
+ if method_name.to_s =~ /^run_(.*)_hooks$/
job = args.shift
run_hooks job, $1, *args
else
super
end