Commit 1d3ad7ef1895ef7f9f7d9ae12189cb772f9d9ab9
1 parent
1d001e27
Exists in
master
and in
29 other branches
Setup multitenancy before querying profile domains
This fixes ActionItem2344
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/domain.rb
... | ... | @@ -73,6 +73,7 @@ class Domain < ActiveRecord::Base |
73 | 73 | # requires restarting the application. |
74 | 74 | def self.hosting_profile_at(domainname) |
75 | 75 | return false unless domainname |
76 | + Noosfero::MultiTenancy.setup!(domainname) | |
76 | 77 | @hosting[domainname] ||= |
77 | 78 | begin |
78 | 79 | domain = Domain.find_by_name(domainname) | ... | ... |