Sha256: 1e7c4fa2a28876e0a811fe20ecc624569424666d725a978f704550eb38d8db1f

Contents?: true

Size: 274 Bytes

Versions: 33

Compression:

Stored size: 274 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

33 entries across 33 versions & 1 rubygems

Version Path
mtdevise-16.1.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-16.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-15.2.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-15.1.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-15.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-14.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-13.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-12.0.1 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-12.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-11.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-10.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-9.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-8.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-7.1.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-7.0.1 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-7.0.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-6.2.0 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-6.1.2 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-6.1.1 app/extenders/mtdevise/constraints/subdomain_required.rb
mtdevise-6.1.0 app/extenders/mtdevise/constraints/subdomain_required.rb