Permalink
Browse files

Use render_part i.o. render_snippet. Closes #6

  • Loading branch information...
1 parent f91db13 commit afe06f772d1fa98d65d3b1d98b50bf6f5f97e289 @jomz jomz committed Nov 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nested_layouts/tags/core.rb
View
2 lib/nested_layouts/tags/core.rb
@@ -72,7 +72,7 @@ class TagError < StandardError; end
tag.globals.nested_layouts_content_stack ||= []
# return the saved content if any, or mimic a default +<r:content/>+ tag (render the body part)
- tag.globals.nested_layouts_content_stack.pop || tag.globals.page.render_snippet(tag.locals.page.part('body'))
+ tag.globals.nested_layouts_content_stack.pop || tag.globals.page.render_part(tag.locals.page.part('body'))
end
desc %{

0 comments on commit afe06f7

Please sign in to comment.