Object
Helper class used from rake ubiquo:create_user to create ubiquo users from the console
Creates a new ubiquo user accepts required fields as parameters.
# File vendor/plugins/ubiquo_authentication/lib/ubiquo_authentication/ubiquo_user_console_creator.rb, line 6
6: def self.create!(options = {})
7: user = UbiquoUser.create(
8: :login => options[:login],
9: :password => options[:password],
10: :password_confirmation => options[:password_confirmation],
11: :email => options[:email],
12: :name => options[:name],
13: :surname => options[:surname],
14: :is_active => options[:is_active],
15: :is_admin => options[:is_admin])
16: user.is_superadmin = options[:is_superadmin]
17: user.locale = I18n.locale.to_s
18: user.save!
19: user
20: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.