Sha256: 926fff2f2037c5366d70020944def451d85275cf9acd67a99624b7bccffae864

Contents?: true

Size: 228 Bytes

Versions: 7

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

json.(image, *image_attributes)
json.(image, :viewable_type, :viewable_id)

Spree::Image.attachment_definitions[:attachment][:styles].each_key do |key|
  json.set! "#{key}_url", image.url(key)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_api-4.4.1 app/views/spree/api/images/_image.json.jbuilder
solidus_api-4.4.0 app/views/spree/api/images/_image.json.jbuilder
solidus_api-4.3.4 app/views/spree/api/images/_image.json.jbuilder
solidus_api-4.3.3 app/views/spree/api/images/_image.json.jbuilder
solidus_api-4.3.2 app/views/spree/api/images/_image.json.jbuilder
solidus_api-4.3.1 app/views/spree/api/images/_image.json.jbuilder
solidus_api-4.3.0 app/views/spree/api/images/_image.json.jbuilder