2017-07-22 12:34:48 +05:30
|
|
|
class DomainConstraint
|
|
|
|
|
def self.matches?(request)
|
2017-08-02 20:16:50 +05:30
|
|
|
domains = Conference.where.not(custom_domain: nil).pluck(:custom_domain)
|
|
|
|
|
domains.include?(request.domain)
|
2017-07-22 12:34:48 +05:30
|
|
|
end
|
2017-08-02 20:16:50 +05:30
|
|
|
end
|