Class: ActionView::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/jsdefer.rb

Instance Method Summary collapse

Instance Method Details

#defer(tag) ⇒ Object



43
44
45
46
# File 'lib/jsdefer.rb', line 43

def defer(tag)
   
  JsDefer.instance.push_file tag
end

#render_jsObject



48
49
50
# File 'lib/jsdefer.rb', line 48

def render_js
  JsDefer.instance.flush
end