Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transitions_to shortcut #168

Closed
dgmike opened this issue Dec 8, 2015 · 0 comments
Closed

transitions_to shortcut #168

dgmike opened this issue Dec 8, 2015 · 0 comments

Comments

@dgmike
Copy link

dgmike commented Dec 8, 2015

Change this:

# /lib/workflow/specification.rb
target = args[:transitions_to] || args[:transition_to]

To this:

target = args[:transitions_to] || args[:transition_to] || args[:to]

So, long transitions names can be handled on one line:

# from this
event(
  :comercial_conditions_accepted,
  transitions_to: :waiting_confim_company_information
)

# to this
event :comercial_conditions_accepted, to: :waiting_company_information
@geekq geekq closed this as completed May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants