Sha256: b2491a572cc841673a626077819914cb13c048dd947fc7a37efd2841175c31d3

Contents?: true

Size: 287 Bytes

Versions: 134

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

json.cache! [I18n.locale, credit_card] do
  json.(credit_card, *creditcard_attributes)
  json.address do
    if credit_card.address
      json.partial!("spree/api/addresses/address", address: credit_card.address)
    else
      json.nil!
    end
  end
end

Version data entries

134 entries across 134 versions & 2 rubygems

Version Path
solidus_api-4.4.1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.4.0 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.3.4 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.2.4 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.1.5 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.3.3 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.3.2 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.1.4 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.3.1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.3.0 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.2.3 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.1.3 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.0.4 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-3.4.6 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.0.3 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.1.2 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.2.2 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-3.4.5 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.2.1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-4.2.0 app/views/spree/api/credit_cards/_credit_card.json.jbuilder