frontend update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user