Module: Wicked::Wizard::ClassMethods
- Defined in:
- lib/wicked/wizard.rb
Instance Method Summary collapse
- #show_wizard(&block) ⇒ Object
- #update_wizard(&block) ⇒ Object
- #wizard_action(action, &block) ⇒ Object
- #wizard_actions(*names) ⇒ Object
Instance Method Details
#show_wizard(&block) ⇒ Object
25 26 27 |
# File 'lib/wicked/wizard.rb', line 25 def show_wizard &block focused_action :show, "#{self.name}::Action".constantize, &block end |
#update_wizard(&block) ⇒ Object
29 30 31 |
# File 'lib/wicked/wizard.rb', line 29 def update_wizard &block focused_action :update, "#{self.name}::Action".constantize, &block end |
#wizard_action(action, &block) ⇒ Object
21 22 23 |
# File 'lib/wicked/wizard.rb', line 21 def wizard_action action, &block focused_action action, "#{self.name}::Action".constantize, &block end |
#wizard_actions(*names) ⇒ Object
15 16 17 18 19 |
# File 'lib/wicked/wizard.rb', line 15 def wizard_actions *names names.each do |name| wizard_action name end end |