From 802f43be2955361773f18ad636d1767368c86e73 Mon Sep 17 00:00:00 2001 From: Artin Boghosian Date: Fri, 12 Apr 2024 20:34:37 -0700 Subject: [PATCH] Update steps.rb Update comment on `#previous_step?` to be accurate. --- lib/wicked/controller/concerns/steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wicked/controller/concerns/steps.rb b/lib/wicked/controller/concerns/steps.rb index ba9daf9..e870e91 100644 --- a/lib/wicked/controller/concerns/steps.rb +++ b/lib/wicked/controller/concerns/steps.rb @@ -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)