Class: Spina::Shop::Admin::ProductReviewsController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/spina/shop/admin/product_reviews_controller.rb

Instance Method Summary collapse

Instance Method Details

#delete_multipleObject



10
11
12
13
# File 'app/controllers/spina/shop/admin/product_reviews_controller.rb', line 10

def delete_multiple
  ProductReview.where(id: params[:product_review_ids]).destroy_all
  redirect_to spina.shop_admin_product_reviews_path
end

#indexObject



5
6
7
8
# File 'app/controllers/spina/shop/admin/product_reviews_controller.rb', line 5

def index
  @product_reviews = ProductReview.sorted.page(params[:page]).per(25)
  add_breadcrumb ProductReview.model_name.human(count: :other)
end