Don't serialize payment ID (not used)

This commit is contained in:
Steve Pettitt
2016-02-20 17:22:26 +00:00
parent 23e774bede
commit d5e51dada6

View File

@@ -1,5 +1,5 @@
class Api::PaymentSerializer < ActiveModel::Serializer
attributes :identifier, :amount, :updated_at, :payment_method
attributes :amount, :updated_at, :payment_method
def payment_method
object.payment_method.name
end