activerecord-reputation-system
activerecord-reputation-system copied to clipboard
Find reputation by a given source
As it is possible to call
@question.add_evaluation(:votes, 1, @user)
it would be great to also be able to call
@question.reputation_for(:votes, @user) which will return 1.
In this way you could find only the reputation from a given source instance.
I see that you have added it here, but it is still not evailable at the gem at https://rubygems.org/gems/activerecord-reputation-system
You can use evaluation_by method.
Expect the new version released next week, until then you can use github source in Gemfile:
gem 'activerecord-reputation-system', github: 'twitter/activerecord-reputation-system'