mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
6 lines
176 B
Ruby
6 lines
176 B
Ruby
class DomainConstraint
|
|
def self.matches?(request)
|
|
domains = Conference.where.not(custom_domain: nil).pluck(:custom_domain)
|
|
domains.include?(request.domain)
|
|
end
|
|
end
|