Sha256: 708e60a17633a8c32568637b60a577a28c974ae4980c44be168250d0e6260937
Contents?: true
Size: 234 Bytes
Versions: 2
Compression:
Stored size: 234 Bytes
Contents
require 'post' class Comment include Mongoid::Document include Mongoid::Voteable referenced_in :post vote_point self, :up => +1, :down => -3 vote_point Post, :up => +2, :down => -1 #, :not_update_counters => true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voteable_mongoid-0.4.5 | spec/models/comment.rb |
voteable_mongoid-0.4.4 | spec/models/comment.rb |