Module: ScriptFlow::ControllerExtension

Extended by:
ActiveSupport::Concern
Defined in:
lib/script_flow/controller.rb

Instance Method Summary collapse

Instance Method Details

#_render_template(options) ⇒ Object



15
16
17
18
19
20
21
# 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_flowObject



11
12
13
# File 'lib/script_flow/controller.rb', line 11

def script_flow
  @script_flow ||= ScriptFlow::Map.new
end