Fix cmtool deprication warning
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
ul.nav
|
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: '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')
|
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)
|
li[class=(current_page?(controller: '/pages', action: 'show', name: page.name) ? :active : nil)]= link_to page.menu_text, page_path(page.name)
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||||
ENV["RAILS_ENV"] ||= 'test'
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
SimpleCov.start 'rails'
|
SimpleCov.start 'rails'
|
||||||
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
require File.expand_path("../config/environment", File.dirname(__FILE__))
|
require File.expand_path("../config/environment", File.dirname(__FILE__))
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
require 'rspec/matchers'
|
require 'rspec/matchers'
|
||||||
|
|||||||
Reference in New Issue
Block a user