Run select_foodcoop as the first before_action
When e.g. authenticate is run as before_action, it could use the wrong database in a multicoop installation, if select_foodcoop is not run first.
This commit is contained in:
parent
4043433539
commit
b22dda4638
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module Concerns::FoodcoopScope
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
before_action :select_foodcoop
|
prepend_before_action :select_foodcoop
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue