mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove serialized contact attributes
This commit is contained in:
committed by
Rob Harrington
parent
73d38cb91b
commit
676abe0ced
@@ -1,5 +1,5 @@
|
||||
class Api::Admin::EnterpriseRoleSerializer < ActiveModel::Serializer
|
||||
attributes :id, :user_id, :enterprise_id, :user_email, :enterprise_name, :receives_notifications
|
||||
attributes :id, :user_id, :enterprise_id, :user_email, :enterprise_name
|
||||
|
||||
def user_email
|
||||
object.user.email
|
||||
|
||||
@@ -7,7 +7,6 @@ class Api::Admin::EnterpriseSerializer < ActiveModel::Serializer
|
||||
attributes :require_login, :allow_guest_orders, :allow_order_changes
|
||||
|
||||
has_one :owner, serializer: Api::Admin::UserSerializer
|
||||
has_one :contact, serializer: Api::Admin::UserSerializer
|
||||
has_many :users, serializer: Api::Admin::UserSerializer
|
||||
|
||||
def tag_groups
|
||||
|
||||
Reference in New Issue
Block a user