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
{{ message }}
This repository was archived by the owner on Jun 9, 2019. It is now read-only.
It would be nice to have methods to detect step sequence. Something like step_is_after?(:step) and step_is_before?(:step).
This way, I could try up all the step checking blocks
before do |voter|
redirect_to_step :address unless voter.state
end
i.e.
before :each do
if step_is_before?(:check_registration)
redirect_to_step :start unless voter.email
else
redirect_to_step :address unless voter.state
end
end