module Wicked::Controller::Concerns::Steps::ClassMethods
Public Instance Methods
check_protected!(wizard_steps)
click to toggle source
# 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
steps(*args)
click to toggle source
# File lib/wicked/controller/concerns/steps.rb, line 51 def steps(*args) options = args.extract_options! steps = args check_protected!(steps) prepend_before_filter(options) do self.steps = steps.dup end end