Sha256: 5af776abcf8f10153c64c0d818108fb8ce4c24013302f7f4774c1a44bd94243a
Contents?: true
Size: 211 Bytes
Versions: 4
Compression:
Stored size: 211 Bytes
Contents
require 'post' class Comment include Mongoid::Voteable include Mongoid::Document field :content belongs_to :post voteable self, :up => +1, :down => -3 voteable Post, :up => +2, :down => -1 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
voteable_mongoid-0.7.6 | spec/models/comment.rb |
voteable_mongoid-0.7.5 | spec/models/comment.rb |
voteable_mongoid-0.7.4 | spec/models/comment.rb |
voteable_mongoid-0.7.3 | spec/models/comment.rb |