lib/rocket_job/plugins/state_machine.rb in rocketjob-5.4.1 vs lib/rocket_job/plugins/state_machine.rb in rocketjob-6.0.0.rc1
- old
+ new
@@ -49,10 +49,11 @@
block
else
# Validate methods are any of Symbol String Proc
methods.each do |method|
unless method.is_a?(Symbol) || method.is_a?(String)
- raise(ArgumentError, "#{action}_#{event_name} currently does not support any options. Only Symbol and String method names can be supplied.")
+ raise(ArgumentError,
+ "#{action}_#{event_name} currently does not support any options. Only Symbol and String method names can be supplied.")
end
end
methods
end
action == :before ? values.push(code) : values.unshift(code)