Sha256: 943d99d71ed4f320285a717be34dc132385f379504e2bab3392e6cb68de52a04

Contents?: true

Size: 230 Bytes

Versions: 9

Compression:

Stored size: 230 Bytes

Contents

require 'post'

class Comment
  include Mongoid::Document
  include Mongoid::Voteable
  
  referenced_in :post
  
  voteable self, :up => +1, :down => -3
  voteable Post, :up => +2, :down => -1 #, :not_update_counters => true
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
voteable_mongoid-0.7.2 spec/models/comment.rb
voteable_mongoid-0.7.1 spec/models/comment.rb
voteable_mongoid-0.7.0 spec/models/comment.rb
voteable_mongoid-0.6.4 spec/models/comment.rb
voteable_mongoid-0.6.3 spec/models/comment.rb
voteable_mongoid-0.6.2 spec/models/comment.rb
voteable_mongoid-0.6.1 spec/models/comment.rb
voteable_mongoid-0.6.0 spec/models/comment.rb
voteable_mongoid-0.5.0 spec/models/comment.rb