module Mtwarden module Constraints class SubdomainRequired def self.matches?(request) request.subdomain.present? && request.subdomain != "www" end end end end