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:
parent
0f49933913
commit
f5765c81ed
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue