Class: Voterable::Vote
- Inherits:
-
Object
- Object
- Voterable::Vote
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/voterable/vote.rb
Overview
A vote object represents a vote made on a voteable object by a voter
Example:
Vote.vote = :up # => :up
Vote.vote # => :up
A vote belongs_to both a Voterable::Voter and a Voterable::Voteable