Include missing helpers

This commit is contained in:
Rohan Mitchell
2016-05-20 12:27:45 +10:00
parent 764219b9ed
commit 8f0bc367d0
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ class ApplicationController < ActionController::Base
private
def action
params[:action].to_sym
end
def require_distributor_chosen
unless @distributor = current_distributor
redirect_to spree.root_path

View File

@@ -3,7 +3,11 @@ require 'open_food_network/tag_rule_applicator'
class BaseController < ApplicationController
include Spree::Core::ControllerHelpers
include Spree::Core::ControllerHelpers::Auth
include Spree::Core::ControllerHelpers::Common
include Spree::Core::ControllerHelpers::Order
include Spree::Core::ControllerHelpers::RespondWith
include EnterprisesHelper
include OrderCyclesHelper