myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2861] trunk/vendor/plugins/acts_as_solr/lib/clas


From: noreply
Subject: [myexperiment-hackers] [2861] trunk/vendor/plugins/acts_as_solr/lib/class_methods.rb: fixed ruby 1 .8.7 / acts_as_solr issue
Date: Mon, 5 Dec 2011 06:56:30 -0500 (EST)

Revision
2861
Author
dgc
Date
2011-12-05 06:56:29 -0500 (Mon, 05 Dec 2011)

Log Message

fixed ruby 1.8.7 / acts_as_solr issue

Modified Paths

Diff

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]