Module: Wicked::Action::ClassMethods

Defined in:
lib/wicked/action.rb

Instance Method Summary collapse

Instance Method Details

#wizard(&block) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/wicked/action.rb', line 24

def wizard &block
  define_method :run do
    wizard_redirect and return if super()
    skip_step if skip_step?
    instance_eval &block
  end
end