Modified: trunk/vendor/plugins/acts_as_solr/lib/class_methods.rb (2860 => 2861)
--- trunk/vendor/plugins/acts_as_solr/lib/class_methods.rb 2011-12-02 16:34:49 UTC (rev 2860)
+++ trunk/vendor/plugins/acts_as_solr/lib/class_methods.rb 2011-12-05 11:56:29 UTC (rev 2861)
@@ -100,7 +100,7 @@
if options[:results_format] == :objects
docs.each{|doc| k = doc.fetch('id').to_s.split(':'); result << k[0].constantize.find_by_id(k[1])}
elsif options[:results_format] == :ids
- docs.each{|doc| result << {"id"=>doc.values.pop.to_s}}
+ docs.each{|doc| result << {"id"=>doc['id'].pop}}
end
SearchResults.new :docs => result, :total => data.total
end
@@ -155,4 +155,4 @@
end
end
-end
\ No newline at end of file
+end