Sha256: 7a3f806bf43358c0fa289ecef8b4d8c48ac277c650654e2d0ce7f39e258eea08

Contents?: true

Size: 220 Bytes

Versions: 6

Compression:

Stored size: 220 Bytes

Contents

module Workarea
  decorate Admin::CatalogProductsController, with: :reviews do
    decorated { helper Admin::ReviewsHelper }

    def reviews
      @reviews = Review.find_for_product(@product.id, true)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-reviews-3.1.2 app/controllers/workarea/admin/catalog_products_controller.decorator
workarea-reviews-3.1.1 app/controllers/workarea/admin/catalog_products_controller.decorator
workarea-reviews-3.1.0 app/controllers/workarea/admin/catalog_products_controller.decorator
workarea-reviews-3.0.10 app/controllers/workarea/admin/catalog_products_controller.decorator
workarea-reviews-3.0.9 app/controllers/workarea/admin/catalog_products_controller.decorator
workarea-reviews-3.0.8 app/controllers/workarea/admin/catalog_products_controller.decorator