Class: ActionView::Template::Handlers::RJS
- Inherits:
-
ActionView::Template::Handler
- Object
- ActionView::Template::Handler
- ActionView::Template::Handlers::RJS
- Includes:
- Compilable
- Defined in:
- actionpack/lib/action_view/template/handlers/rjs.rb
Instance Method Summary (collapse)
Methods included from Compilable
Methods inherited from ActionView::Template::Handler
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 |