public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Don't show duplicate items in the blog.
Tim Morgan (author)
Wed Oct 15 06:14:00 -0700 2008
commit  6849ebe86834dbaf74321d6f86faa6aa57c17128
tree    3bd1c52248277c6114c28e0d0295f9b2b66427fb
parent  372e6b9cdf2ad1f88b4307679db3c8c1e20bb0bf
...
445
446
447
448
 
449
450
451
...
445
446
447
 
448
449
450
451
0
@@ -445,7 +445,7 @@ class Person < ActiveRecord::Base
0
       :order => 'created_at desc',
0
       :conditions => "model_name in (#{classes.join(',')})",
0
       :limit => 25
0
-    ).map { |item| item.object }.select { |o| o and (o.respond_to?(:person_id) ? o.person_id == self.id : o.people.include?(self)) and not (o.respond_to?(:deleted?) and o.deleted?) }
0
+    ).map { |item| item.object }.uniq.select { |o| o and (o.respond_to?(:person_id) ? o.person_id == self.id : o.people.include?(self)) and not (o.respond_to?(:deleted?) and o.deleted?) }
0
   end
0
   
0
   alias_method :groups_without_linkage, :groups

Comments