Sha256: 052889b003a72b36b7ac1a218d64a9492a4a37c5130e2cdd0b01a9d678552a98

Contents?: true

Size: 517 Bytes

Versions: 22

Compression:

Stored size: 517 Bytes

Contents

class Account
  include Mongoid::Document
  field :number, :type => String
  field :balance, :type => String
  field :nickname, :type => String
  field :name, :type => String
  key :name

  embeds_many :memberships
  referenced_in :creator, :class_name => "User", :foreign_key => :creator_id
  referenced_in :person
  references_many :alerts
  references_and_referenced_in_many :agents

  attr_accessible :nickname, :name

  validates_presence_of :name
  validates_length_of :name, :maximum => 10, :on => :create
end

Version data entries

22 entries across 22 versions & 4 rubygems

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