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

Inherits:
ActionView::Template::Handler show all
Includes:
Compilable
Defined in:
actionpack/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

- (Object) compile(template)



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

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

- (Object) default_format



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

def default_format
  Mime::JS
end