Sha256: 3c32a0f74b899fd89b1cf649e73316091fc0ddb78fb996a06c9864b2c0aa832c

Contents?: true

Size: 365 Bytes

Versions: 134

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

json.(user, *user_attributes)
json.bill_address do
  if user.bill_address
    json.partial!("spree/api/addresses/address", address: user.bill_address)
  else
    json.nil!
  end
end
json.ship_address do
  if user.ship_address
    json.partial!("spree/api/addresses/address", address: user.ship_address)
  else
    json.nil!
  end
end

Version data entries

134 entries across 134 versions & 2 rubygems

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