aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template_handlers/erb.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-04-24 16:58:09 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-04-24 16:58:09 +0100
commit1959db324653d5db345b935c9d2696c544d836af (patch)
tree5cc858e7a41ca4ee7be4f89713d401b5fe51a206 /actionpack/lib/action_view/template_handlers/erb.rb
parenta0748848b646fdda5dd8e4c93b5bd9a0363738eb (diff)
downloadrails-1959db324653d5db345b935c9d2696c544d836af.tar.gz
rails-1959db324653d5db345b935c9d2696c544d836af.tar.bz2
rails-1959db324653d5db345b935c9d2696c544d836af.zip
Pass template object to Handler#compile
Diffstat (limited to 'actionpack/lib/action_view/template_handlers/erb.rb')
-rw-r--r--actionpack/lib/action_view/template_handlers/erb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template_handlers/erb.rb b/actionpack/lib/action_view/template_handlers/erb.rb
index f30cf0203c..15a9064461 100644
--- a/actionpack/lib/action_view/template_handlers/erb.rb
+++ b/actionpack/lib/action_view/template_handlers/erb.rb
@@ -43,7 +43,7 @@ module ActionView
include Compilable
def compile(template)
- ::ERB.new(template, nil, @view.erb_trim_mode).src
+ ::ERB.new(template.source, nil, @view.erb_trim_mode).src
end
def cache_fragment(block, name = {}, options = nil) #:nodoc: