Module: Wicked::Controller::Concerns::Steps::ClassMethods
- Defined in:
- lib/wicked/controller/concerns/steps.rb
Instance Attribute Summary collapse
-
#command_steps(*args) ⇒ Object
readonly
Returns the value of attribute command_steps.
-
#skip_steps ⇒ Object
readonly
Returns the value of attribute skip_steps.
-
#wizard_steps ⇒ Object
readonly
Returns the value of attribute wizard_steps.
Instance Method Summary collapse
- #allow_skip_for(*args) ⇒ Object (also: #optional_steps)
- #steps(*args) ⇒ Object
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_steps ⇒ Object (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_steps ⇒ Object (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) = args.last.is_a?(Hash) ? callbacks.pop : {} steps = args @wizard_steps = args prepend_before_filter() do self.steps = steps end end |