Sha256: 0a0851d9ad3de13db27c837c20ab6d3d2b24fb2664a7c89ed6dbea2403733aa2

Contents?: true

Size: 256 Bytes

Versions: 11

Compression:

Stored size: 256 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
solidus_api-2.5.2 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.5.1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.5.0 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.5.0.rc1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.5.0.beta2 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.5.0.beta1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.4.2 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.4.1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.4.0 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.4.0.rc1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder
solidus_api-2.4.0.beta1 app/views/spree/api/credit_cards/_credit_card.json.jbuilder