Module: Horde::Actions::FavoriteMethods::TargetMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/horde/actions/favorite.rb
Overview
methods for something to be favorited, like article, photo, etc. if your model is Article. Then you’ll get following methods
article.favorites # --> [favorite]
article.favoriters # --> [user]
favorite.favoriter # --> user
favorite.favorited_article # --> article
user.favorited_articles # --> [article]
Defined Under Namespace
Modules: ClassMethods