switch to JSONAPI for suppliers

This commit is contained in:
2015-09-09 09:12:30 +02:00
parent 9c1945252d
commit 5cdbe57dec
10 changed files with 58 additions and 11 deletions
@@ -1,5 +1,6 @@
class Employees::EmployeeShiftSerializer < Qwaiter::Serializer
self.root = :employee_shift
attributes :start_from, :end_on, :employee_id, :description
class Employees::EmployeeShiftSerializer
include Qwaiter::EmployeeBaseSerializer
attributes :start_from, :end_on, :description
has_one :supplier
has_one :employee
end