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

Allow someone to define just one state to transition from. #7

Merged
merged 1 commit into from
Aug 23, 2014

Conversation

ericroberts
Copy link
Owner

Can provide an array or singular.

Example:

def self.transitions
  [
    { from: [:one, :two], to: :three },
    { from: :three, to: :four }
  ]
end

Can provide an array or singular.

Example:

def self.transitions
  [
    { from: [:one, :two], to: :three },
    { from: :three, to: :four }
  ]
end
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e7aa74a on allow-single-from-state into 4b2078f on master.

ericroberts added a commit that referenced this pull request Aug 23, 2014
Allow someone to define just one state to transition from.
@ericroberts ericroberts merged commit 08d1dd1 into master Aug 23, 2014
@ericroberts ericroberts deleted the allow-single-from-state branch August 23, 2014 02:13
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.

None yet

2 participants