Sha256: acee3adf75a10b53ba8a4024f32571edf2772d12971e3414e2c2023488200b40

Contents?: true

Size: 207 Bytes

Versions: 116

Compression:

Stored size: 207 Bytes

Contents

attrs = [:id, :month, :year, :cc_type, :last_digits, :name]
if @current_user_roles.include?("admin")
  attrs += [:gateway_customer_profile_id, :gateway_payment_profile_id]
end

json.(payment_source, *attrs)

Version data entries

116 entries across 116 versions & 2 rubygems

Version Path
solidus_api-4.0.4 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.6 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-4.0.3 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.5 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-4.0.2 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.4 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.3.4 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.2.9 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.2.8 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.3.3 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.3 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-4.0.1 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-4.0.0 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.2 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.2.7 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.3.2 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.1 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.4.0 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.3.1 app/views/spree/api/payments/source_views/_gateway.json.jbuilder
solidus_api-3.2.6 app/views/spree/api/payments/source_views/_gateway.json.jbuilder