Sha256: 55e6353149f308b5b347db47071d6924a8b0948c50c6096fe0f489fc8e01b2ae

Contents?: true

Size: 348 Bytes

Versions: 134

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

json.cache! address do
  json.(address, *address_attributes)
  json.country do
    if address.country
      json.(address.country, *country_attributes)
    else
      json.nil!
    end
  end
  json.state do
    if address.state
      json.(address.state, *state_attributes)
    else
      json.nil!
    end
  end
end

Version data entries

134 entries across 134 versions & 2 rubygems

Version Path
solidus_api-3.2.5 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.2.4 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.2.3 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.1.8 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.0.8 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.2.2 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.2.1 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.2.0 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.2.0.alpha app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.0.7 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-2.11.17 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.1.7 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-2.11.16 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.0.6 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.1.6 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-2.11.15 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-2.11.14 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.0.5 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-3.1.5 app/views/spree/api/addresses/_address.json.jbuilder
solidus_api-2.11.13 app/views/spree/api/addresses/_address.json.jbuilder