diff --git a/db/seeds/backer.rb b/db/seeds/backer.rb index c8d6bdf79..552fd804e 100644 --- a/db/seeds/backer.rb +++ b/db/seeds/backer.rb @@ -58,15 +58,16 @@ def create(backer_number, password) :url=> "#{email}.joindiaspora.com") # Make connection with Diaspora Tom - Person.create( :email => "tom@joindiaspora.com", :url => "http://tom.joindiaspora.com/", :active => true, :profile => Profile.new(:first_name => "Alexander", :last_name => "Hamiltom")) + User.owner.send_friend_request_to('http://tom.joindiaspora.com/') + #Person.create( :email => "tom@joindiaspora.com", :url => "http://tom.joindiaspora.com/", :active => true, :profile => Profile.new(:first_name => "Alexander", :last_name => "Hamiltom")) # Make people - (0..10).each { |n| - email = backer_info[n][2].gsub(/ /,'').downcase - Person.create( :email => "#{email}@joindiaspora.com", - :url => "http://#{email}.joindiaspora.com/", - :active => true, - :profile => Profile.new(:first_name => backer_info[n][1], :last_name => backer_info[n][2])) unless n == backer_number - } + #(0..10).each { |n| + #email = backer_info[n][2].gsub(/ /,'').downcase + #Person.create( :email => "#{email}@joindiaspora.com", + #:url => "http://#{email}.joindiaspora.com/", + #:active => true, + #:profile => Profile.new(:first_name => backer_info[n][1], :last_name => backer_info[n][2])) unless n == backer_number + #} end diff --git a/db/seeds/tom.rb b/db/seeds/tom.rb index 4ce85ff1d..0f572b7b1 100644 --- a/db/seeds/tom.rb +++ b/db/seeds/tom.rb @@ -1,4 +1,4 @@ -# This file should contain all the record creation needed to seed the database with its default values. +#This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: @@ -50,9 +50,11 @@ names = [ ["George", "Washington"], ] # Make people -(0..10).each { |n| - email = names[n][1].gsub(/ /,'').downcase - Person.create( :email => "#{email}@joindiaspora.com", :url => "http://#{email}.joindiaspora.com/", :active => true, :profile => Profile.new(:first_name => names[n][0], :last_name => names[n][1])) +#(0..10).each { |n| + #email = names[n][1].gsub(/ /,'').downcase + #Person.create( :email => "#{email}@joindiaspora.com", :url => "http://#{email}.joindiaspora.com/", :active => true, :profile => Profile.new(:first_name => names[n][0], :last_name => names[n][1])) +#} +Request.all.each{|r| + User.owner.accept_friend_request(r.id) } -