From df0526c4daa95132a9d4e1f36bb446ceb69d1ef1 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sat, 3 Apr 2010 11:24:35 -0300 Subject: [PATCH] Creating sample friendships The Right Way --- script/sample-data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/sample-data b/script/sample-data index b1b31ee..41bfda5 100755 --- a/script/sample-data +++ b/script/sample-data @@ -40,7 +40,7 @@ rand(people.size * 3).times do from = people.rand to = people.rand if from != to && !from.friends.include?(to) - from.add_friend(to) + AddFriend.create!(:requestor => to, :target => from).finish end print '.'; $stdout.flush end -- libgit2 0.21.2