Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow host and domain-based routing

  • Loading branch information...
commit ad30dff03ca01390ba806b041de04b1a2e233914 1 parent 18511eb
@arctickiwi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/subdomain_fu/routing_extensions.rb
View
2  lib/subdomain_fu/routing_extensions.rb
@@ -13,6 +13,8 @@ def recognition_conditions_with_subdomain
result << "conditions[:subdomain] === env[:subdomain]" if conditions[:subdomain] && conditions[:subdomain] != true && conditions[:subdomain] != false
result << "SubdomainFu.has_subdomain?(env[:subdomain])" if conditions[:subdomain] == true
result << "!SubdomainFu.has_subdomain?(env[:subdomain])" if conditions[:subdomain] == false
+ result << "conditions[:domain] === env[:domain]" if conditions[:domain]
+ result << "conditions[:host] === env[:host]" if conditions[:host]
result
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.