Releases: ryanto/acts_as_votable
Releases · ryanto/acts_as_votable
v0.13.2
v0.13.1
v0.13.0
💥 Breaking changes
- If you're using a cacheable strategy it needs to change from
update_attributes
toupdate
. Example:
< cacheable_strategy: :update_attributes
> cacheable_strategy: :update
- Drop support for EOL rubies (2.3, 2.4) and EOL rails (4.x, 5.0). We now support Ruby 2.5, Ruby 2.6, Ruby 2.7 and Rails 5.1+
v0.12.1
v0.12.0
v0.12.0
- #170, Add transactions around new votes/untoves, thanks @tthomas7
- #174, Update Rails to 4.2.10 and 5.0.6 and remove gemfiles/*.gemfile.lock files, thanks @fatkodima
- #177, Rename factory_girl to factory_bot, thanks @fatkodima
- #175, Readme updates, thanks @fatkodima
- #178, Add
voted_up_by?
andvoted_down_by?
methods, thanks @aandis - #188, Performance Tweaks, thanks @reneklacan
v0.11.1
v0.9.0
In version 0.8.0, there were bugs for a model that is both votable and voter.
Some name-conflicting methods have been renamed:
- Renamed Votable.votes to votes_for
- Renamed Votable.vote to vote_by,
- Removed Votable.vote_by alias (was an alias for :vote_up)
- Renamed Votable.unvote_for to unvote_by
- Renamed Votable.find_votes to find_votes_for
- Renamed Votable.up_votes to get_upvotes
- and its aliases :get_true_votes, :get_ups, :get_upvotes, :get_likes, :get_positives, :get_for_votes
- Renamed Votable.down_votes to get_downvotes
- and its aliases :get_false_votes, :get_downs, :get_downvotes, :get_dislikes, :get_negatives