cloud_controller/app/models/user.rb
def create_bootstrap_user(email, password, is_admin=false)
      user = User.find_or_create_by_email(email)
      user.set_and_encrypt_password(password)
      user.save!
      admins << email if is_admin
      user
    end
# Called at startup to seed the database with initial users
# if they do not yet exist.
Called at startup to seed the database with initial users
if they do not yet exist.
Called at startup to seed the database with initial users if they do not yet exist .
def create_bootstrap_user(email, password, is_admin=false)
      user = User.find_or_create_by_email(email)
      user.set_and_encrypt_password(password)
      user.save!
      admins << email if is_admin
      user
    end
def create_bootstrap_user ( email , password , is_admin = false ) user = User . find_or_create_by_email ( email ) user . set_and_encrypt_password ( password ) user . save! admins << email if is_admin user end
Called at startup to seed the database with initial users
if they do not yet exist.
Called at startup to seed the database with initial users if they do not yet exist .
email
password
is_admin