Make sure pre-Rails-2.0.1 partials have all locals defined.

This commit is contained in:
Nathan Weizenbaum 2008-06-20 00:46:04 -04:00
parent 0f49933913
commit f5765c81ed
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ module ActionView
options[:filename] = file_name || 'compiled-template'
begin
Haml::Engine.new(template, options).def_method(CompiledTemplates, render_symbol, *locals)
Haml::Engine.new(template, options).def_method(CompiledTemplates, render_symbol, *locals_keys)
rescue Exception => e
if logger
logger.debug "ERROR: compiling #{render_symbol} RAISED #{e}"