Sha256: 5a76f9cc1c1e8ba20b1fc61eb633a78a33fc661d6a76e5d6401120592b8ca75f

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

object false
node(:count) { @variants.count }
node(:total_count) { @variants.total_count }
node(:current_page) { params[:page] ? params[:page].to_i : 1 }
node(:pages) { @variants.num_pages }

child(@variants => :variants) do
  attributes *variant_attributes
  child(:option_values => :option_values) { attributes *option_value_attributes }
  child(:images => :images) { extends "spree/api/images/show" }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_api-1.3.5 app/views/spree/api/variants/index.v1.rabl
spree_api-1.3.4 app/views/spree/api/variants/index.v1.rabl
spree_api-1.3.3 app/views/spree/api/variants/index.v1.rabl