Fix error handling in single coop installs (PR #841)

This commit is contained in:
wvengen 2021-02-26 15:10:26 +01:00 committed by wvengen
parent db5a499e4c
commit f45afb7dd4

View file

@ -11,15 +11,6 @@ class ErrorsController < ApplicationController
private private
def select_foodcoop
foodcoop = params[:foodcoop]
if FoodsoftConfig.allowed_foodcoop? foodcoop
FoodsoftConfig.select_foodcoop foodcoop
else
FoodsoftConfig.select_default_foodcoop
end
end
def current_layout def current_layout
current_user ? 'application' : 'login' current_user ? 'application' : 'login'
end end