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/compilable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/template_handlers/compilable.rb') diff --git a/actionpack/lib/action_view/template_handlers/compilable.rb b/actionpack/lib/action_view/template_handlers/compilable.rb index 35c74f6c51..25bd0fea7f 100644 --- a/actionpack/lib/action_view/template_handlers/compilable.rb +++ b/actionpack/lib/action_view/template_handlers/compilable.rb @@ -95,7 +95,7 @@ module ActionView # Method to create the source code for a given template. def create_template_source(template, render_symbol) - body = compile(template.source) + body = compile(template) self.template_args[render_symbol] ||= {} locals_keys = self.template_args[render_symbol].keys | template.locals.keys -- cgit v1.2.3