Dynamic pages, language switcher and fix schedule drag drop time mismatch bug
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class Suppliers::PageSerializer < Qwaiter::Serializer
|
||||
self.root = :page
|
||||
attributes :name, :title, :body, :locale, :position
|
||||
def name
|
||||
object.name.to_s.sub /^suppliers-/, ''
|
||||
end
|
||||
|
||||
def id
|
||||
name
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user