Skip to content

Commit

Permalink
Allow host and domain-based routing
Browse files Browse the repository at this point in the history
  • Loading branch information
arctickiwi committed Jan 20, 2010
1 parent 18511eb commit ad30dff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/subdomain_fu/routing_extensions.rb
Expand Up @@ -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
Expand Down

0 comments on commit ad30dff

Please sign in to comment.