Sha256: a4e39a6e2f1725176d75d5224e77ffd57578f0f9206473960b4aa4579f5db973

Contents?: true

Size: 190 Bytes

Versions: 5

Compression:

Stored size: 190 Bytes

Contents

module Cadenero
  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
cadenero-0.0.2.a3 lib/cadenero/constraints/subdomain_required.rb
cadenero-0.0.2.a2 lib/cadenero/constraints/subdomain_required.rb
cadenero-0.0.2.a1 lib/cadenero/constraints/subdomain_required.rb
cadenero-0.0.2.a lib/cadenero/constraints/subdomain_required.rb
cadenero-0.0.1 lib/cadenero/constraints/subdomain_required.rb