1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

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

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}"