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

can specify from transition as :any #7

Merged
merged 1 commit into from
Oct 15, 2013
Merged

Conversation

deepak
Copy link
Contributor

@deepak deepak commented Oct 15, 2013

this works because when we call add_state
we build a table of known states

this works because when we call add_state
we build a table of known states
gnufied pushed a commit that referenced this pull request Oct 15, 2013
@gnufied gnufied merged commit adfcbbc into master Oct 15, 2013
@gnufied gnufied deleted the from-transition-can-be-any branch October 15, 2013 10:38
@iffyuva
Copy link
Member

iffyuva commented Oct 15, 2013

i had one comment: maybe we should support 2 formats:

  transitions from: :any     # already supported
  transitiosn from: [:any]   # any can be part of array

although there is no solid reason why we should support option 2, ive often seen rails guys sticking to the convention that from: should always be an array. For eg, in routes.rb we can write

  resources :posts, only: :index
  resources :posts, only: [:index]

@gnufied
Copy link
Contributor

gnufied commented Oct 15, 2013

hmm, seems bit unnecessary in my opinion! But PRs are welcome (they will be rejected in this case though :D)

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

Successfully merging this pull request may close these issues.

3 participants