mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 03:11:11 +08:00
11 lines
225 B
Ruby
11 lines
225 B
Ruby
|
class UserSubdomain
|
||
|
def self.matches?(request)
|
||
|
if ENV['USER_SUBDOMAIN']
|
||
|
return (request.subdomain.present? &&
|
||
|
request.subdomain == ENV['USER_SUBDOMAIN'])
|
||
|
else
|
||
|
return true
|
||
|
end
|
||
|
end
|
||
|
end
|