Sha256: 5b845a2a7c8e24e97bd2af91c007878dedf9de7eee0dcdf1e87ed4ef45f5a075

Contents?: true

Size: 193 Bytes

Versions: 25

Compression:

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

25 entries across 25 versions & 1 rubygems

Version Path
mtwarden-17.1.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-17.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-16.2.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-16.1.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-16.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-15.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-14.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-13.0.1 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-13.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-12.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-11.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-9.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-8.1.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-8.0.1 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-8.0.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-7.2.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-7.1.2 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-7.1.1 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-7.1.0 lib/mtwarden/constraints/subdomain_required.rb
mtwarden-7.0.0 lib/mtwarden/constraints/subdomain_required.rb