These commits fix https://rails.lighthouseapp.com/projects/8994/tickets/4840-to_xml-doesnt-work-in-such-case-eventselecttitle-as-tto_xml
to_xml doesn't work in such case: Event.select('title as t').to_xml [#…
NilClass.type is no longer defined in Ruby 1.9 and causes ActiveRecord::Base.to_xml to fail with message: undefined method `type' for nil:NilClass
Provide test for #4840: to_xml doesn't work in such case: Event.selec…
…t('title as t').to_xml
I've merged this in. Thanks guys!