Sha256: 6ca4d19130b9560a66d2be21c19f951f0e1ae8fdbefe9a96004ef655f05db654

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

module Spree
  module Admin
    class FavoriteProductsController < Spree::Admin::BaseController

      def index
        @favorite_products = Spree::Product.favorite.page(params[:page])
      end

      def users
        @product = Spree::Product.where(:id => params[:id]).first
        @users = @product.favorite_users.page(params[:page])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_favorite_products-2.2.0 app/controllers/spree/admin/favorite_products_controller.rb
spree_favorite_products-2.0.1 app/controllers/spree/admin/favorite_products_controller.rb
spree_favorite_products-1.0.1 app/controllers/spree/admin/favorite_products_controller.rb
spree_favorite_products-2.0.0 app/controllers/spree/admin/favorite_products_controller.rb
spree_favorite_products-1.0.0 app/controllers/spree/admin/favorite_products_controller.rb