serializer stuff

This commit is contained in:
2015-09-14 18:53:58 +02:00
parent 36e5b21b13
commit ef894f9e02
37 changed files with 141 additions and 63 deletions
@@ -1,7 +1,8 @@
class Suppliers::SectionSerializer
include Qwaiter::SupplierBaseSerializer
attributes :title, :path, :width, :height
attributes :title, :width, :height #, :path
has_many :tables, serializer: Suppliers::TableSerializer
has_many :section_areas, serializer: Suppliers::SectionAreaSerializer
has_many :section_elements, serializer: Suppliers::SectionElementSerializer
has_one :supplier, serializer: Suppliers::SupplierSerializer
end