textmateからソースがどう表示されるかテスト
6月 4th, 2009 by waku
1 2 3 4 5 # don't allow optimisation if a subdomain is present - fixes a problem 6 # with the subdomain appearing in the query instead of being rewritten 7 # see http://mbleigh.lighthouseapp.com/projects/13148/tickets/8-improper-generated-urls-with-named-routes-for-a-singular-resource 8 guard_condition_without_subdomains + " && !args.last.has_key?(:subdomain)" 9 end 10 alias_method_chain :guard_condition, :subdomains 11 end 12 end 13 end






