Class: ActionView::Template::Handlers::RJS

Inherits:
ActionView::Template::Handler show all
Includes:
Compilable
Defined in:
lib/action_view/template/handlers/rjs.rb

Instance Method Summary collapse

Methods included from Compilable

included

Methods inherited from ActionView::Template::Handler

call, #render

Instance Method Details

#compile(template) ⇒ Object



8
9
10
# File 'lib/action_view/template/handlers/rjs.rb', line 8

def compile(template)
  "update_page do |page|;#{template.source}\nend"
end

#default_formatObject



12
13
14
# File 'lib/action_view/template/handlers/rjs.rb', line 12

def default_format
  Mime::JS
end