app/helpers/admin/node_helper.rb in trusty-cms-2.0.2 vs app/helpers/admin/node_helper.rb in trusty-cms-2.0.3.pre.beta
- old
+ new
@@ -1,19 +1,19 @@
module Admin::NodeHelper
- def render_nodes(page, starting_index, parent_index = nil, simple = false)
+ def render_nodes(page, starting_index, parent_index = nil)
@rendered_html = ""
- render_node page, starting_index, parent_index, simple
+ render_node page, starting_index, parent_index
@rendered_html
end
- def render_node(page, index, parent_index = nil, simple = false)
+ def render_node(page, index, parent_index = nil)
@current_node = prepare_page(page)
@rendered_html += (render :partial => 'admin/pages/node',
:locals => {level: index, index: index, parent_index: parent_index,
- page: page, simple: simple, branch: (page.children.count > 0) })
+ page: page, simple: false, branch: (page.children.count > 0) })
index
end
def prepare_page(page)
page.extend MenuRenderer