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

Version Path
mongoid_spacial-0.2.17 spec/models/user_account.rb
sig_mongoid_spacial-0.2.17 spec/models/user_account.rb
cb_mongoid_spacial-0.2.16 spec/models/user_account.rb
mongoid_geospatial-1.0.0 spec/models/user_account.rb
mongoid_geospatial-1.0.0rc1 spec/models/user_account.rb
mongoid_geospatial-1.0.0rc0 spec/models/user_account.rb
mongoid_spacial-0.2.16 spec/models/user_account.rb
mongoid_spacial-0.2.13 spec/models/user_account.rb
mongoid_spacial-0.2.12 spec/models/user_account.rb
mongoid_spacial-0.2.11 spec/models/user_account.rb
mongoid_spacial-0.2.10 spec/models/user_account.rb
mongoid_spacial-0.2.8 spec/models/user_account.rb
mongoid_spacial-0.2.7 spec/models/user_account.rb
mongoid_spacial-0.2.6 spec/models/user_account.rb
mongoid_spacial-0.2.5 spec/models/user_account.rb
mongoid_spacial-0.2.4 spec/models/user_account.rb
mongoid_spacial-0.2.3 spec/models/user_account.rb
mongoid_spacial-0.2.2 spec/models/user_account.rb
mongoid_spacial-0.2.0 spec/models/user_account.rb
mongoid_spacial-0.1.1 spec/models/user_account.rb