handle new activerecord postgres result set class for rails v3 and higher