GeoRSS aggregator and Layar augmented reality server
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

18 wiersze
553 B

  1. class User
  2. include MongoMapper::Document
  3. key :email, String
  4. key :crypted_password, String
  5. key :salt, String
  6. authenticates_with_sorcery!
  7. # attr_accessible :email, :password, :password_confirmation
  8. validates_presence_of :email
  9. validates_presence_of :password, :on => :create
  10. validates_uniqueness_of :email
  11. validates_length_of :password, :minimum => 3, :message => "password must be at least 3 characters long", :if => :password
  12. validates_confirmation_of :password, :message => "should match confirmation", :if => :password
  13. end