> console
>> @request = ActionController::TestRequest.new
=> #<ActionController::TestRequest:0x38a2868 ...>
>> @request.host = '192.168.1.1'
=> "192.168.1.1"
>> @request.domain
=> nil
>> @request.subdomains
=> ["192", "168"]
When patched, @request.subdomains returns an empty array.
Ticket and patch (with tests): http://dev.rubyonrails.org/ticket/9479
Could I beg a quick review and, if worthy, a few +1s to get this into
Rails 2?
Thanks!
--j
Good stuff. Applied.