This adds two more instance methods to Voter; .voted_up_on? and .voted_down_on?, which should be pretty self explanatory.
# user has not voted on @comment3
@user.voted_up_on? @comment1 # => true
@user.voted_down_on? @comment1 # => false
@user.voted_down_on? @comment2 # => true
@user.voted_up_on? @comment2 # => false
@user.voted_up_on? @comment3 # => false
@user.voted_down_on? @comment3 # => false
Add `Voter.voted_up_on?` and `Voter.voted_down_on?` methods.
Thanks! Looks great.
I am going to bump the version and push to Rubygems.
Pushed to rubygems as 0.3.0
gem "acts_as_votable", "~> 0.3.0"
Much appreciated :)