11
12
13
14
15
16
17
|
# File 'lib/subdomain_fu/routing_extensions.rb', line 11
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 << "SubdomainFu.has_subdomain?(env[:subdomain])" if conditions[:subdomain] == true
result << "!SubdomainFu.has_subdomain?(env[:subdomain])" if conditions[:subdomain] == false
result
end
|