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