Sha256: 8356501d9f3e3e338c64a59e489f6eade3adef4e14ba43ae963ba0f7d311bfe0

Contents?: true

Size: 251 Bytes

Versions: 27

Compression:

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

27 entries across 27 versions & 1 rubygems

Version Path
mtdevise-2.7.0 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.6.6 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.6.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.5.9 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.5.7 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.5.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.5.2 app/constraints/mtdevise/constraints/subdomain_required.rb