Sha256: d8b21c0c45d1c04c30c294d080d194ee281d62ac87ae21be9e2dfb930752562f
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module Sprangular class PaymentSourceSerializer < BaseSerializer attributes :id, :month, :year, :cc_type, :last_digits, :name, :gateway_customer_profile_id, :gateway_payment_profile_id def include_gateway_payment_profile_id? scope.has_spree_role?("admin") end def include_gateway_customer_profile_id? scope.has_spree_role?("admin") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/serializers/sprangular/payment_source_serializer.rb |