Sha256: f6016c833d96ad02c7d7ecbb78084c6b2635effceba7b3fed75c322cfd0aced2
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
module Mongo module Voteable class Votes include Mongoid::Document field :up, :type => Array, :default => [] field :down, :type => Array, :default => [] field :up_count, :type => Integer, :default => 0 field :down_count, :type => Integer, :default => 0 field :count, :type => Integer, :default => 0 field :point, :type => Integer, :default => 0 DEFAULT_ATTRIBUTES = new.attributes DEFAULT_ATTRIBUTES.delete('_id') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voteable_mongo-0.8.1 | lib/voteable_mongo/voteable/votes.rb |