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-3.8.4 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.8.3 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.8.2 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.8.1 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.8.0 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.7.0 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.6.2 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.6.1 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.6.0 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.11 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.10 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.9 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.8 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.7 app/assets/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.1 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-3.5.0 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-3.0.4 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-3.0.2 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-3.0.0 app/constraints/mtdevise/constraints/subdomain_required.rb