lib/sunspot/session.rb in outoftime-sunspot-0.8.8 vs lib/sunspot/session.rb in outoftime-sunspot-0.8.9
- old
+ new
@@ -53,10 +53,10 @@
# the appropriate setup to use for each object.
#
def index(*objects)
objects.flatten!
@updates += objects.length
- objects.group_by { |object| object.class }.each_pair do |clazz, objs|
+ objects.group_by { |object| object.class }.to_hash.each_pair do |clazz, objs|
indexer_for(objs.first).add(objs)
end
end
#