Active model serializer deprication smash

This commit is contained in:
2015-03-11 07:44:28 +01:00
parent 0a1aa06f2c
commit adff870774
23 changed files with 49 additions and 27 deletions
+3 -3
View File
@@ -35,14 +35,14 @@ private
:en
end
def page_path(record, locale: I18n.locale)
def go_to_page_path(record, locale: I18n.locale)
str = case record
when Page then record.name
else record
end
go_to_path(str, locale: locale)
main_app.go_to_path(str, locale: locale)
end
helper_method :page_path
helper_method :go_to_page_path
#END CMTOOL
def broadcast_user(uid, event, data = {})