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

Recalculate reputation? #34

Open
virusman opened this issue Dec 13, 2012 · 2 comments
Open

Recalculate reputation? #34

virusman opened this issue Dec 13, 2012 · 2 comments

Comments

@virusman
Copy link

Is there a method to recalculate reputation for a given object?
I've been having issues with STI support (add_or_update_evaluation was previously updating the subclass reputation, while reputation_for is now returning the base class reputation or something else), but anyway, I now have two reputations for every STI object: one for the subclass, one for the base class, and they're both inaccurate, so I need to recalculate reputations somehow. I haven't found anything in the API, both public and private.
Also, STI behavior seems inconsistent: previously it wasn't using the base STI class at all, now it uses the base class for reputations, while still using the subclass name for evaluations.

@bbuehrig
Copy link

Did you find a method to recalc the reputations?

@virusman
Copy link
Author

I'm not working on that project anymore, I think we had to do a migration for that and then removed activerecord-reputation-system from the project, replacing it with our own implementation of a 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