Sha256: b1638517b48b5b1d6c81183cc2ef50fb14197f67b1193c00446c5324389e4d6e

Contents?: true

Size: 221 Bytes

Versions: 20

Compression:

Stored size: 221 Bytes

Contents

module Mtdevise
	module Constraints
		class SubdomainRequired
			def self.matches?(request)
				request.subdomain.present? && request.subdomain != "www" && request.subdomain != ENV['DEPLOYED_DOMAIN']
			end
		end
	end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mtdevise-2.5.0 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.0.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.0.2 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.0.1 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-2.0.0b app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.8.6 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.8.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.8.0 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.7.11 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.7.8 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.7.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.7.1 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.7.0 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.6.6 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.6.5 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.6.3 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.6.0 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.5.3 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.5.2 app/constraints/mtdevise/constraints/subdomain_required.rb
mtdevise-1.5.0 app/constraints/mtdevise/constraints/subdomain_required.rb