scinote-web/app/utilities/user_subdomain.rb
2019-09-12 17:24:08 +02:00

10 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