Module: Wicked::Controller::Concerns::Steps::ClassMethods

Defined in:
lib/wicked/controller/concerns/steps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wizard_stepsObject (readonly)

Returns the value of attribute wizard_steps.



47
48
49
# File 'lib/wicked/controller/concerns/steps.rb', line 47

def wizard_steps
  @wizard_steps
end

Instance Method Details

#steps(*args) ⇒ Object



49
50
51
52
53
54
55
56
# File 'lib/wicked/controller/concerns/steps.rb', line 49

def steps(*args)
  options = args.last.is_a?(Hash) ? callbacks.pop : {}
  steps   = args
  @wizard_steps = args
  prepend_before_filter(options) do
    self.steps = steps
  end
end