RS, IZ; updated DB seed to have a group, zombiefriend with a group

This commit is contained in:
ilya 2010-08-13 11:36:59 -07:00
parent 7bd1193c5e
commit ef97b4f19d
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,7 @@ def warzombie
if current_user.email == "tom@tom.joindiaspora.com" && current_user.friends.first.nil?
bkr_info.each do |backer|
logger.debug "Zombefriending #{backer['given_name']} #{backer['family_name']}"
current_user.send_friend_request_to("http://#{backer['username']}.joindiaspora.com/")
current_user.send_friend_request_to("http://#{backer['username']}.joindiaspora.com/", current_user.groups.first.id)
end
end
end
@ -36,7 +36,7 @@ def warzombie
def zombiefriendaccept
render :nothing => true
Request.all.each{|r|
current_user.accept_friend_request(r.id)
current_user.accept_friend_request(r.id, current_user.groups.first.id)
}
end

View file

@ -23,5 +23,6 @@ def create(backer_number)
:url=> "http://#{username}.joindiaspora.com/")
)
user.person.save
user.group(:name => "Presidents")
end