mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
rename vars again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user