take out index, change backer seed, no puts

This commit is contained in:
Raphael 2010-09-15 17:13:17 -07:00
parent 02dda4f0a7
commit bf33313bf9
3 changed files with 1 additions and 3 deletions

View file

@ -14,7 +14,6 @@ class RegistrationsController < Devise::RegistrationsController
user = nil
flash[:error] = e.message
end
puts user
if user
#set_flash_message :notice, :signed_up
flash[:notice] = "You've joined Diaspora!"

View file

@ -50,7 +50,6 @@ class User
######## Making things work ########
key :email, String
ensure_index :email
def method_missing(method, *args)
self.person.send(method, *args)

View file

@ -21,7 +21,7 @@ def create
backer_number = YAML.load_file(Rails.root.join('config','backer_number.yml'))[:seed_number].to_i
# Create seed user
username = backer_info[backer_number]['username'].gsub(/ /,'').downcase
user = User.create(:email => "#{username}@#{username}.joindiaspora.com",
user = User.instantiate!(:email => "#{username}@#{username}.joindiaspora.com",
:username => username,
:password => "#{username+backer_info[backer_number]['pin'].to_s}",
:password_confirmation => "#{username+backer_info[backer_number]['pin'].to_s}",