Files
openfoodnetwork/app/controllers/home_controller.rb
Rohan Mitchell 610a4c03fe Merge branch 'master' into redesign
Conflicts:
	app/controllers/home_controller.rb
	app/views/producers/index.html.haml
	app/views/shared/menu/_mobile_menu.html.haml
	app/views/shop/products/_form.html.haml
	config/routes.rb
	spec/controllers/shops_controller_spec.rb
2015-06-10 18:27:50 +10:00

14 lines
324 B
Ruby

class HomeController < BaseController
layout 'darkswarm'
def index
@num_hubs = Enterprise.is_hub.count
@num_producers = Enterprise.is_primary_producer.count
@num_users = Spree::User.joins(:orders).count('DISTINCT spree_users.*')
@num_orders = Spree::Order.complete.count
end
def about_us
end
end