Fix cmtool deprication warning

This commit is contained in:
2014-12-11 16:37:15 +01:00
parent f9c94bab47
commit 9b72ff173f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,5 +2,5 @@
ul.nav
li[class=(current_page?(controller: '/pages', action: 'home') ? :active : nil)]= link_to find_page('home').try(:menu_text), locale_root_path
li[class=(current_page?(controller: '/pages', action: 'show', name: 'about') ? :active : nil)]= link_to find_page('about').try(:menu_text), page_path('about')
- Page.top_menu.each do |page|
- Page.menu_roots.each do |page|
li[class=(current_page?(controller: '/pages', action: 'show', name: page.name) ? :active : nil)]= link_to page.menu_text, page_path(page.name)