Browse files

Fixes ActionMailer regression [#3059 state:resolved]

  • Loading branch information...
1 parent d6d550f commit ccf28d2499d1b4e2aba41291eb800e0e02120923 @wycats wycats committed Aug 15, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/render/rendering.rb
View
2 actionpack/lib/action_view/render/rendering.rb
@@ -83,7 +83,7 @@ def _render_inline(inline, layout, options)
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

0 comments on commit ccf28d2

Please sign in to comment.