Method: MultistepForm#step

Defined in:
lib/multistep_form.rb

#step(index, &block) ⇒ Object



42
43
44
45
# File 'lib/multistep_form.rb', line 42

def step(index, &block)
  return if block_given? && block.call == false
  force_step(steps.index(current_step) + index, true)
end