Sha256: 3b30a0d7a4f8f706b2be82ade59d8852ed679d81ed1c6c7aa7f24b6e0305a133

Contents?: true

Size: 201 Bytes

Versions: 11

Compression:

Stored size: 201 Bytes

Contents

json.(image, *image_attributes)
json.(image, :viewable_type, :viewable_id)
Spree::Image.attachment_definitions[:attachment][:styles].each do |k, _v|
  json.set! "#{k}_url", image.attachment.url(k)
end

Version data entries

11 entries across 11 versions & 1 rubygems

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