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

Update steps.rb [changelog skip] #306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/wicked/controller/concerns/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def future_step?(step_name)
current_step_index < step_index_for(step_name)
end

# will return true if the last step is the step passed in
# will return true if the previous step is the step passed in
def previous_step?(step_name)
return false unless current_and_given_step_exists?(step_name)
(current_step_index - 1) == step_index_for(step_name)
Expand Down
Loading