Sha256: e1e77a6600fc543efaa9c0ed625db733c79c11387821fad271119e3b008101a6
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
module Mtdevise module Constraints class SubdomainRequired # Subdomain Matching def self.matches?(request) request.subdomain.present? && request.subdomain != "www" && request.subdomain != ENV['DEPLOYED_DOMAIN'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mtdevise-5.0.1 | app/extenders/mtdevise/constraints/subdomain_required.rb |