Skip to content

Commit

Permalink
Make env[:subdomain] a string to allow for matching with empty regular
Browse files Browse the repository at this point in the history
expressions.

Signed-off-by: Michael Bleigh <michael@intridea.com>
  • Loading branch information
eric authored and Michael Bleigh committed May 26, 2009
1 parent 95ac670 commit 24866ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subdomain_fu/routing_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.included(base)

def recognition_conditions_with_subdomain
result = recognition_conditions_without_subdomain
result << "conditions[:subdomain] === env[:subdomain]" if conditions[:subdomain] && conditions[:subdomain] != true && conditions[:subdomain] != false
result << "conditions[:subdomain] === env[:subdomain].to_s" 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
Expand Down

0 comments on commit 24866ce

Please sign in to comment.