Sha256: 697518350e03e579a35ca9e0ebd75900b3ef31f9a45e35a69c83251957b124b2

Contents?: true

Size: 381 Bytes

Versions: 6

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

json.cache! [I18n.locale, review] do
  json.call(review, *review_attributes)
  json.images(review.images) do |image|
    json.partial!("spree/api/images/image", image: image)
  end
  json.feedback_reviews(review.feedback_reviews) do |feedback_review|
    json.partial!("spree/api/reviews/feedback_review", feedback_review: feedback_review)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 app/views/spree/api/reviews/_review.json.jbuilder
solidus_reviews-1.6.0 app/views/spree/api/reviews/_review.json.jbuilder
solidus_reviews-1.5.0 app/views/spree/api/reviews/_review.json.jbuilder
solidus_reviews-1.4.1 app/views/spree/api/reviews/_review.json.jbuilder
solidus_reviews-1.4.0 app/views/spree/api/reviews/_review.json.jbuilder
solidus_reviews-1.3.0 app/views/spree/api/reviews/_review.json.jbuilder