From 1959db324653d5db345b935c9d2696c544d836af Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 24 Apr 2008 16:58:09 +0100 Subject: Pass template object to Handler#compile --- actionpack/lib/action_view/template_handlers/erb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/template_handlers/erb.rb') 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: -- cgit v1.2.3