Sha256: d37856ecbad2afb8b3f0e9f2c299fa6f87e6e36276bd4f6e786614b287fef4b9
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
require 'acts_as_votable/helpers/words' module ActsAsVotable class Vote < ::ActiveRecord::Base include Helpers::Words attr_accessible :votable_id, :votable_type, :voter_id, :voter_type, :votable, :voter, :vote_flag belongs_to :votable, :polymorphic => true belongs_to :voter, :polymorphic => true validates_presence_of :votable_id validates_presence_of :voter_id end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts_as_votable-0.1.3 | lib/acts_as_votable/vote.rb |
acts_as_votable-0.1.2 | lib/acts_as_votable/vote.rb |
acts_as_votable-0.1.1 | lib/acts_as_votable/vote.rb |