frontend update

This commit is contained in:
2015-03-06 10:01:50 +01:00
parent e9b6cd627a
commit bbd3b0c6eb
7 changed files with 29 additions and 25 deletions
-8
View File
@@ -162,14 +162,6 @@ module ApplicationHelper
end
end
def page_path(record)
str = case record
when Page then record.name
else record
end
go_to_path(str, locale: I18n.locale)
end
def find_page(name)
Page.find_by_name_and_locale(name, I18n.locale)
end