Sha256: bed4f3f6e8c9f95e11220229831e691d5e1a42aaab3f6a61e4aaf67a5385ccf7

Contents?: true

Size: 181 Bytes

Versions: 4

Compression:

Stored size: 181 Bytes

Contents

class RatingCache
  include Mongoid::Document
  include Mongoid::Timestamps

  field :avg, type: Float
  field :qty, type: Integer

  belongs_to :cacheable, :polymorphic => true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-letsrate-1.0.16 spec/models/rating_cache.rb
mongoid-letsrate-1.0.15 spec/models/rating_cache.rb
mongoid-letsrate-1.0.14 spec/models/rating_cache.rb
mongoid-letsrate-1.0.13 spec/models/rating_cache.rb