lib/cadenero/constraints/subdomain_required.rb in cadenero-0.0.2.a3 vs lib/cadenero/constraints/subdomain_required.rb in cadenero-0.0.2.b1

- old
+ new

@@ -1,6 +1,8 @@ module Cadenero + # Constraints for the routes module Constraints + # For the routes require that a subdomain is defined class SubdomainRequired def self.matches?(request) request.subdomain.present? && request.subdomain != "www" end end \ No newline at end of file