You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - beginner error here... but an uninformative diagnostic error message. I accidentally typed "transition_to" instead of "transitions_to". Which provokes a message about an undefined method "to_sym" for nil.Class. Not very obvious that there's a missing required parameter...
Can I suggest a one liner enhancement to the initialize function?
def initialize(name, transitions_to, meta = {}, &action)
raise "missing 'transitions_to' from workflow for '#{name}'" if transitions_to == nil
@name, @transitions_to, @meta, @action = name, transitions_to.to_sym, meta, action
end
The text was updated successfully, but these errors were encountered:
Hi - beginner error here... but an uninformative diagnostic error message. I accidentally typed "transition_to" instead of "transitions_to". Which provokes a message about an undefined method "to_sym" for nil.Class. Not very obvious that there's a missing required parameter...
Can I suggest a one liner enhancement to the initialize function?
The text was updated successfully, but these errors were encountered: