Skip to content
Browse files

Allow host and domain-based routing

  • Loading branch information...
1 parent 18511eb commit ad30dff03ca01390ba806b041de04b1a2e233914 @arctickiwi committed Jan 20, 2010
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

0 comments on commit ad30dff

Please sign in to comment.
Something went wrong with that request. Please try again.