lib/rails-footnotes/notes/render_note.rb in rails3-footnotes-4.0.0.pre.5 vs lib/rails-footnotes/notes/render_note.rb in rails3-footnotes-4.0.0.pre.6
- old
+ new
@@ -18,10 +18,10 @@
def content
html = ''
if @page
view = Footnotes.view_subscriber.view_name
- layout = Footnotes.view_subscriber.layout_name
+ layout = Footnotes.view_subscriber.layout
partial_time = Footnotes.view_subscriber.partial_time
rows = [["View", "Layout", "View Render", "Partial Render", "Total Render"],
[escape(view), escape(layout), "#{'%.3f' % (@page.duration - partial_time)}ms",
"<a href=\"#\" onclick=\"Footnotes.hideAllAndToggle('partials_debug_info');return false;\">#{'%.3f' % partial_time}ms</a>",