Sha256: 0fab6c8f3df5c8b4d873476e71d8c936ea5842ea9aa60d0657a7d95fe37bad72

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

require 'post'

class Comment
  include Mongoid::Document
  include Mongo::Voteable

  field :content

  belongs_to :post
  
  voteable self, :up => +1, :down => -3
  voteable Post, :up => +2, :down => -1
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voteable_mongo-0.8.1 spec/models/comment.rb