base/app/models/actor.rb in social_stream-0.12.9 vs base/app/models/actor.rb in social_stream-0.12.10

- old
+ new

@@ -204,10 +204,10 @@ # def contact_actors(options = {}) subject_types = Array(options[:type] || self.class.subtypes) subject_classes = subject_types.map{ |s| s.to_s.classify } - as = Actor.select("DISTINCT actors.*"). + as = Actor.group(:id). where('actors.subject_type' => subject_classes) if options[:load_subjects].nil? || options[:load_subjects] as = as.includes(subject_types) end