Class: ActionView::TemplateHandlers::RJS
- Inherits:
-
ActionView::TemplateHandler
- Object
- ActionView::TemplateHandler
- ActionView::TemplateHandlers::RJS
- Includes:
- Compilable
- Defined in:
- lib/action_view/template_handlers/rjs.rb
Instance Method Summary collapse
Methods included from Compilable
Methods inherited from ActionView::TemplateHandler
Constructor Details
This class inherits a constructor from ActionView::TemplateHandler
Instance Method Details
#compile(template) ⇒ Object
6 7 8 9 |
# File 'lib/action_view/template_handlers/rjs.rb', line 6 def compile(template) "controller.response.content_type ||= Mime::JS;" + "update_page do |page|;#{template.source}\nend" end |