activerecord-reputation-system icon indicating copy to clipboard operation
activerecord-reputation-system copied to clipboard

Find reputation by a given source

Open thebravoman opened this issue 11 years ago • 2 comments

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.

thebravoman avatar Feb 10 '15 14:02 thebravoman

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

thebravoman avatar Feb 10 '15 15:02 thebravoman

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'

NARKOZ avatar Feb 22 '15 09:02 NARKOZ