spec/dummy/app/models/user.rb in private_person-0.4.0 vs spec/dummy/app/models/user.rb in private_person-0.5.0
- old
+ new
@@ -14,18 +14,18 @@
end
def following_of_followings
ids = []
for user in following_users
- ids |= user.following_users
+ ids += user.following_users
end
User.where(:id => ids)
end
def follower_of_followers
ids = []
for user in user_followers
- ids |= user.user_followers
+ ids += user.user_followers
end
User.where(:id => ids)
end
end