page body fixes

This commit is contained in:
2015-10-04 15:00:47 +02:00
parent db526f7b9b
commit cc785c4d73
6 changed files with 15 additions and 13 deletions
+3 -1
View File
@@ -2,5 +2,7 @@ class Suppliers::PageSerializer
include Qwaiter::SupplierBaseSerializer
attributes :title, :body, :locale, :position
attribute(:name) { object.name.to_s.sub /^suppliers-/, '' }
attribute(:id) { object.name.to_s.sub /^suppliers-/, '' }
def id
object.name.to_s.sub /^suppliers-/, ''
end
end