Sha256: 91a6a80d435aaaf03a44520826c99dcaae67059f5bb7ff43d8be8f87e944bea0

Contents?: true

Size: 185 Bytes

Versions: 6

Compression:

Stored size: 185 Bytes

Contents

module Workarea
  decorate Search::Storefront::Product, with: :reviews do
    def sorts
      super.merge(
        rating: Review.find_sorting_score(model.id)
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-reviews-3.1.2 app/models/workarea/search/storefront/product.decorator
workarea-reviews-3.1.1 app/models/workarea/search/storefront/product.decorator
workarea-reviews-3.1.0 app/models/workarea/search/storefront/product.decorator
workarea-reviews-3.0.10 app/models/workarea/search/storefront/product.decorator
workarea-reviews-3.0.9 app/models/workarea/search/storefront/product.decorator
workarea-reviews-3.0.8 app/models/workarea/search/storefront/product.decorator