aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template_handlers/rjs.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-05 17:31:57 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-05 17:31:57 -0500
commit27f382641c9ec945a1d657f5efba6a06296dca54 (patch)
treef839fcef070bb4259241f41a5136b98e64640926 /actionpack/lib/action_view/template_handlers/rjs.rb
parentcd6fe831526d84ae40e425cadbf22f42a375de2a (diff)
downloadrails-27f382641c9ec945a1d657f5efba6a06296dca54.tar.gz
rails-27f382641c9ec945a1d657f5efba6a06296dca54.tar.bz2
rails-27f382641c9ec945a1d657f5efba6a06296dca54.zip
Deprecated TemplateHandler line offset
Diffstat (limited to 'actionpack/lib/action_view/template_handlers/rjs.rb')
-rw-r--r--actionpack/lib/action_view/template_handlers/rjs.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/template_handlers/rjs.rb b/actionpack/lib/action_view/template_handlers/rjs.rb
index 5854e33fed..31ce598c46 100644
--- a/actionpack/lib/action_view/template_handlers/rjs.rb
+++ b/actionpack/lib/action_view/template_handlers/rjs.rb
@@ -3,13 +3,9 @@ module ActionView
class RJS < TemplateHandler
include Compilable
- def self.line_offset
- 2
- end
-
def compile(template)
- "controller.response.content_type ||= Mime::JS\n" +
- "update_page do |page|\n#{template.source}\nend"
+ "controller.response.content_type ||= Mime::JS;" +
+ "update_page do |page|;#{template.source};end"
end
def cache_fragment(block, name = {}, options = nil) #:nodoc: