Sha256: 5fb1d62452c8fd87aa593c247a2532ed2c5156fb28216411743e562299fbae10

Contents?: true

Size: 184 Bytes

Versions: 10

Compression:

Stored size: 184 Bytes

Contents

class Profile
  include Mongoid::Document
  
  field :first_name
  field :last_name
  field :age
  
  embedded_in :user, :inverse_of => :profile
  
  validates_numericality_of :age
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
mongoid-rspec-mongoid-rc-1.3.2 spec/models/profile.rb
mongoid-rspec-1.3.2 spec/models/profile.rb
mongoid-rspec-1.2.1 spec/models/profile.rb
mongoid-rspec-1.2.0 spec/models/profile.rb
mongoid-rspec-1.1.2 spec/models/profile.rb
mongoid-rspec-1.1.1 spec/models/profile.rb
mongoid-rspec-1.1.0 spec/models/profile.rb
mongoid-rspec-1.0.4 spec/models/profile.rb
mongoid_rspec_ign-1.0.3 spec/models/profile.rb
mongoid-rspec-1.0.3 spec/models/profile.rb