Sha256: 128810dde0c206a491825d437f4d543ece5b762bcc8a610257e3f74726ea1538

Contents?: true

Size: 199 Bytes

Versions: 2

Compression:

Stored size: 199 Bytes

Contents

class Rating
  include Mongoid::Document
  field :value, :type => Integer
  referenced_in :ratable, :polymorphic => true
  validates_numericality_of :value, :less_than => 100, :allow_nil => true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-eager-loading-0.3.1 spec/models/rating.rb
mongoid-eager-loading-0.3.0 spec/models/rating.rb