When loading distributors for sidebar, only show those that have active products on hand

This commit is contained in:
Rohan Mitchell
2012-08-04 17:51:08 +10:00
parent f0ec3080e4
commit 9f013f0e37
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
private
def load_data_for_sidebar
@suppliers = Spree::Supplier.all
@distributors = Spree::Distributor.with_products_on_hand.by_name
@distributors = Spree::Distributor.with_active_products_on_hand.by_name
end
end