Sha256: 6294a768a725fdf71c2e23a02c38904b90ae2b5770ed42ea64fbf4fe1b5f79d6

Contents?: true

Size: 192 Bytes

Versions: 6

Compression:

Stored size: 192 Bytes

Contents

module Mtwarden
  module Constraints
    class SubdomainRequired

      def self.matches?(request)
        request.subdomain.present? && request.subdomain != "www"
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mtwarden-5.0.0b lib/mtwarden/constraints/subdomain_required.rb
mtwarden-4.1.2 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-4.1.1 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-4.1.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-4.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-3.6.2 lib/mtwarden/constraints/subdomain_required.rb