rename vars again

This commit is contained in:
David Cook
2013-06-14 17:36:38 +10:00
parent 423bd52fd6
commit 1abc0dac68

View File

@@ -11,9 +11,9 @@ class ApplicationController < ActionController::Base
def load_data_for_sidebar
@suppliers = Enterprise.is_primary_producer.with_supplied_active_products_on_hand.limit(5)
@supplier_total = Enterprise.is_primary_producer.with_supplied_active_products_on_hand.count
@total_suppliers = Enterprise.is_primary_producer.with_supplied_active_products_on_hand.count
@distributors = Enterprise.is_distributor.with_distributed_active_products_on_hand.by_name.limit(5)
@distributor_total = Enterprise.is_distributor.with_distributed_active_products_on_hand.by_name.count
@total_distributors = Enterprise.is_distributor.with_distributed_active_products_on_hand.by_name.count
end
# All render calls within the block will be performed with the specified format