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