Module: SanteyVote::Voteable::ClassMethods

Defined in:
lib/santey_vote/voteable.rb

Instance Method Summary collapse

Instance Method Details

#santey_voteObject



9
10
11
12
13
# File 'lib/santey_vote/voteable.rb', line 9

def santey_vote
  has_many :votes, :as => :voteable, :dependent => :destroy
  include SanteyVote::Voteable::InstanceMethods
  extend SanteyVote::Voteable::SingletonMethods
end