Sha256: fceaa1b13f20bc20abea9ffff1e211d247ab124bb95bbdf410bb7685aefef3eb

Contents?: true

Size: 263 Bytes

Versions: 134

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

json.states_required(@country.states_required) if @country
json.states(@states) { |state| json.(state, *state_attributes) }
if @states.respond_to?(:total_pages)
  json.partial! 'spree/api/shared/pagination', pagination: @states
end

Version data entries

134 entries across 134 versions & 2 rubygems

Version Path
solidus_api-2.6.5 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.9.1 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.9.0 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.9.0.rc.1 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.8.4 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.8.3 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.7.2 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.6.4 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.8.2 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.8.1 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.6.3 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.8.0 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.7.1 app/views/spree/api/states/index.json.jbuilder
solidus_api-2.6.2 app/views/spree/api/states/index.json.jbuilder
solidus_api_devise_token_auth-2.8.0.alpha.14 app/views/spree/api/states/index.json.jbuilder
solidus_api_devise_token_auth-2.8.0.alpha.13 app/views/spree/api/states/index.json.jbuilder
solidus_api_devise_token_auth-2.8.0.alpha.12 app/views/spree/api/states/index.json.jbuilder
solidus_api_devise_token_auth-2.8.0.alpha.11 app/views/spree/api/states/index.json.jbuilder
solidus_api_devise_token_auth-2.8.0.alpha.10 app/views/spree/api/states/index.json.jbuilder
solidus_api_devise_token_auth-2.8.0.alpha.9 app/views/spree/api/states/index.json.jbuilder