fix type error
This commit is contained in:
@@ -96,7 +96,7 @@ class ActionController::API
|
|||||||
private
|
private
|
||||||
|
|
||||||
def lookup_domain
|
def lookup_domain
|
||||||
if ENV["SERVER_CODE"] == "cloud" && request.subdomains.last && request.subdomains.last != "www"
|
if ENV["SERVER_MODE"] == "cloud" && request.subdomains.last && request.subdomains.last != "www"
|
||||||
if license = cache_license # request.subdomain.downcase
|
if license = cache_license # request.subdomain.downcase
|
||||||
logger.info "Location - " + license.dbschema
|
logger.info "Location - " + license.dbschema
|
||||||
ActiveRecord::Base.establish_connection(website_connection(license))
|
ActiveRecord::Base.establish_connection(website_connection(license))
|
||||||
|
|||||||
Reference in New Issue
Block a user