Active model serializer deprication smash

This commit is contained in:
2015-03-11 07:44:28 +01:00
parent 0a1aa06f2c
commit adff870774
23 changed files with 49 additions and 27 deletions
@@ -1,6 +1,5 @@
class Suppliers::ExtendedSectionSerializer < Qwaiter::Serializer
root 'section'
embed :ids, include: true
attributes :title, :path, :width, :height
has_many :tables, serializer: Suppliers::ExtendedTableSerializer
end
@@ -1,6 +1,5 @@
class Suppliers::ExtendedTableSerializer < Qwaiter::Serializer
root 'table'
embed :ids, include: true
attributes :number, :width, :height, :position_x, :position_y, :section_id#, :active_list_id
#def list_id
@@ -1,6 +1,5 @@
class Suppliers::SupplierSerializer < Qwaiter::Serializer
self.root = :supplier
embed :ids, include: true
attributes :extended_version, :open, :name, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count