Class: ActionView::Template::Handlers::RJS
- Inherits:
-
ActionView::Template::Handler
- Object
- ActionView::Template::Handler
- ActionView::Template::Handlers::RJS
- Includes:
- Compilable
- Defined in:
- lib/action_view/template/handlers/rjs.rb
Instance Method Summary collapse
Methods included from Compilable
Methods inherited from ActionView::Template::Handler
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_format ⇒ Object
12 13 14 |
# File 'lib/action_view/template/handlers/rjs.rb', line 12 def default_format Mime::JS end |