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

Fixes ActionMailer regression [#3059 state:resolved]

This commit is contained in:
Yehuda Katz 2009-08-15 20:38:50 -07:00
parent d6d550f0cb
commit ccf28d2499

View file

@ -83,7 +83,7 @@ module ActionView
template = Template.new(options[:inline], "inline #{options[:inline].inspect}", handler, {}) template = Template.new(options[:inline], "inline #{options[:inline].inspect}", handler, {})
locals = options[:locals] || {} locals = options[:locals] || {}
content = template.render(self, locals) content = template.render(self, locals)
content = layout.render(self, locals) {|*name| _layout_for(*name) } if layout content = layout.render(self, locals) {|*name| _layout_for(*name) { content } } if layout
content content
end end