Method: Wicked::Controller::Concerns::Steps::ClassMethods#check_protected!
- Defined in:
- lib/wicked/controller/concerns/steps.rb
#check_protected!(wizard_steps) ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/wicked/controller/concerns/steps.rb', line 60 def check_protected!(wizard_steps) string_steps = wizard_steps.map(&:to_s) if protected_step = PROTECTED_STEPS.detect { |protected| string_steps.include?(protected) } msg = "Protected step detected: '#{protected_step}' is used internally by Wicked please rename your step" raise WickedProtectedStepError, msg end end |