route to conference#show for custom domain

This commit is contained in:
shlok007 2017-07-22 12:34:48 +05:30
parent 52cde784fa
commit 74fdb1bdda
5 changed files with 30 additions and 6 deletions

View file

@ -0,0 +1,6 @@
class DomainConstraint
def self.matches?(request)
@domains = Conference.pluck(:custom_domain).compact
@domains.include?(request.domain)
end
end