Sha256: 5b845a2a7c8e24e97bd2af91c007878dedf9de7eee0dcdf1e87ed4ef45f5a075

Contents?: true

Size: 193 Bytes

Versions: 25

Compression:

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

25 entries across 25 versions & 1 rubygems

Version Path
mtwarden-6.1.2 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-6.1.1 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-6.1.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-6.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-5.0.0 lib/mtwarden/constraints/subdomain_required.rb