Files
openfoodnetwork/app/controllers/application_controller.rb
2012-08-02 11:33:36 +10:00

13 lines
256 B
Ruby

class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :load_data_for_sidebar
private
def load_data_for_sidebar
@suppliers = Spree::Supplier.all
@distributors = Spree::Distributor.with_products
end
end