class Cambium::UserGenerator
Public Instance Methods
create_user()
click to toggle source
Create a user with the provided credentials
# File lib/generators/cambium/user_generator.rb, line 22 def create_user if options.admin == true User.create!( :email => email, :password => password, :password_confirmation => password, :is_admin => options.admin ) else User.create!( :email => email, :password => password, :password_confirmation => password ) end end