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
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ module ActionView
template = Template.new(options[:inline], "inline #{options[:inline].inspect}", handler, {})
locals = options[: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
end