Sha256: c7302cf33462617a4a72a281c6f1da0ed3ec935e63c0472e5f5c260770b82fd0

Contents?: true

Size: 174 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
mtwarden-2.2.7 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-2.2.6 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-2.2.5 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-2.2.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-2.1.0 lib/mtwarden/constraints/subdomain_required.rb