Sha256: c3fd16125271a0f55d7c0d6398ac800b63176808a5c465662745387e4f3a024c
Contents?: true
Size: 357 Bytes
Versions: 24
Compression:
Stored size: 357 Bytes
Contents
class UserAccount include Mongoid::Document field :username field :name field :email validates_uniqueness_of :username, :message => "is not unique" validates_uniqueness_of :email, :message => "is not unique", :case_sensitive => false validates_length_of :name, :minimum => 2, :allow_nil => true references_and_referenced_in_many :people end
Version data entries
24 entries across 24 versions & 5 rubygems