Module: ThumbsUp::ActsAsVoteable::ClassMethods
- Defined in:
- lib/acts_as_voteable.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_voteable ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/acts_as_voteable.rb', line 10 def acts_as_voteable has_many ThumbsUp.configuration[:voteable_relationship_name], :as => :voteable, :dependent => :destroy, :class_name => 'Vote' include ThumbsUp::ActsAsVoteable::InstanceMethods extend ThumbsUp::ActsAsVoteable::SingletonMethods end |