module ScriptFlow::ControllerExtension

Public Instance Methods

_render_template(options) click to toggle source
Calls superclass method
# File lib/script_flow/controller.rb, line 15
def _render_template(options)
  if lookup_context.rendered_format == :js
     super + script_flow.render
  else
    super
  end
end
script_flow() click to toggle source
# File lib/script_flow/controller.rb, line 11
def script_flow
  @script_flow ||= ScriptFlow::Map.new
end