Sha256: 4dfaf7bd83575b9e925c717e91af2a7a338b43ee53eeee84e0de029bbbd20a24

Contents?: true

Size: 204 Bytes

Versions: 4

Compression:

Stored size: 204 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, :greater_than => 0
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-rspec-1.4.4 spec/models/profile.rb
mongoid-rspec-1.4.3 spec/models/profile.rb
mongoid-rspec-1.4.2 spec/models/profile.rb
mongoid-rspec-1.4.1 spec/models/profile.rb