acts_as_favoritor 6.0.0
acts_as_favoritor is a Rubygem to allow any ActiveRecord model to associate any other model including the option for multiple relationships per association with scopes. You are able to differentiate followers, favorites, watchers, votes and whatever else you can imagine through a single relationship. This is accomplished by a double polymorphic relationship on the Favorite model. There is also built in support for blocking/un-blocking favorite records as well as caching.
Gemfile:
=
instalar:
=
dependencias de Runtime (1):
activerecord
>= 5.0
dependencias de Development (8):
factory_bot
>= 0
pry
>= 0
rails
>= 0
rspec-rails
>= 0
rubocop
>= 0
rubocop-rails
>= 0
rubocop-rspec
>= 0
sqlite3
>= 0