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

Skip single step #2

Merged
merged 2 commits into from
Jan 10, 2017
Merged

Skip single step #2

merged 2 commits into from
Jan 10, 2017

Conversation

jwright
Copy link
Owner

@jwright jwright commented Jan 10, 2017

Allows a step to be skipped on the Context with a #next method.

If the block does not pass, the current step will be skipped and move onto the next step.

class SomeStep
  def call(context)
    context.next { required(:email).filled }
  end
end

@jwright jwright merged commit 6132c49 into master Jan 10, 2017
@jwright jwright deleted the skip-single-step branch January 10, 2017 15:59
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

1 participant