Class: Spree::Admin::FavoriteProductsController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Admin::FavoriteProductsController
- Defined in:
- app/controllers/spree/admin/favorite_products_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/spree/admin/favorite_products_controller.rb', line 5 def index @favorite_products = Spree::Product.favorite.page(params[:page]) end |
#users ⇒ Object
9 10 11 12 |
# File 'app/controllers/spree/admin/favorite_products_controller.rb', line 9 def users @product = Spree::Product.where(:id => params[:id]).first @users = @product.favorite_users.page(params[:page]) end |