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

#command_steps(*args) ⇒ Object (readonly)

Returns the value of attribute command_steps.



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

def command_steps
  @command_steps
end

#skip_stepsObject (readonly)

Returns the value of attribute skip_steps.



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

def skip_steps
  @skip_steps
end

#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

#allow_skip_for(*args) ⇒ Object Also known as: optional_steps



58
59
60
# File 'lib/wicked/controller/concerns/steps.rb', line 58

def allow_skip_for(*args)
  @skip_steps = args
end

#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