handle new activerecord postgres result set class for rails v3+