mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
10 lines
526 B
Ruby
10 lines
526 B
Ruby
class Api::Admin::EnterpriseSerializer < ActiveModel::Serializer
|
|
attributes :name, :id, :is_primary_producer, :is_distributor, :sells, :category, :payment_method_ids, :shipping_method_ids
|
|
attributes :producer_profile_only, :email, :long_description, :permalink
|
|
attributes :preferred_shopfront_message, :preferred_shopfront_closed_message, :preferred_shopfront_taxon_order
|
|
attributes :owner, :users
|
|
|
|
has_one :owner, serializer: Api::Admin::UserSerializer
|
|
has_many :users, serializer: Api::Admin::UserSerializer
|
|
end
|