Renaming existing enterprise fee serializer as basic...

This commit is contained in:
Rob Harrington
2015-04-06 09:47:37 +10:00
parent 52dc313e70
commit b7de8353bc
3 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
class Api::Admin::BasicEnterpriseFeeSerializer < ActiveModel::Serializer
attributes :id, :enterprise_id
end

View File

@@ -1,3 +0,0 @@
class Api::Admin::EnterpriseFeeSerializer < ActiveModel::Serializer
attributes :id, :enterprise_id
end

View File

@@ -1,7 +1,7 @@
class Api::Admin::ExchangeSerializer < ActiveModel::Serializer
attributes :id, :sender_id, :receiver_id, :incoming, :variants, :pickup_time, :pickup_instructions
has_many :enterprise_fees, serializer: Api::Admin::EnterpriseFeeSerializer
has_many :enterprise_fees, serializer: Api::Admin::BasicEnterpriseFeeSerializer
def variants
permitted = Spree::Variant.where("1=0")