Method: WebFlow::FlowStep#method

Defined in:
lib/webflow/flow_step.rb

#method(method_name) ⇒ Object

Maps a method name to execute instead of searching the controller for a method name who is the same as the step name.

Use it as :

action_step :my_step do
  method :call_this_instead
end


259
260
261
262
263
# File 'lib/webflow/flow_step.rb', line 259

def method(method_name)

  @_method = method_name.to_s
  
end