Files
openfoodnetwork/app/serializers/api/customer_serializer.rb
Rob Harrington ffa8a8c7d6 Create Api::BaseController to allow use of ActiveModelSerializers
Also add index action to Api::CustomersController
2018-06-22 15:39:47 +10:00

6 lines
147 B
Ruby

module Api
class CustomerSerializer < ActiveModel::Serializer
attributes :id, :enterprise_id, :name, :code, :email, :allow_charges
end
end