Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Find reputation by a given source #80

Open
thebravoman opened this issue Feb 10, 2015 · 2 comments
Open

Find reputation by a given source #80

thebravoman opened this issue Feb 10, 2015 · 2 comments

Comments

@thebravoman
Copy link

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
Copy link
Author

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

@NARKOZ
Copy link
Contributor

NARKOZ commented Feb 22, 2015

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'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants