End of evening commit, changing supplier to JSONAPI
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
class Suppliers::UserSerializer < Qwaiter::Serializer
|
||||
self.root = :user
|
||||
attributes :email, :provider, :uid, :name, :avatar, :list_id
|
||||
|
||||
def list_id
|
||||
object.active_list_id
|
||||
end
|
||||
|
||||
def name
|
||||
object.supplier_name
|
||||
end
|
||||
class Suppliers::UserSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
attributes :email, :provider, :uid, :avatar
|
||||
attribute(:name) { object.supplier_name }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user