twitter / activerecord-reputation-system

An Active Record Reputation System for Rails
Apache License 2.0
1.33k stars 122 forks source link

Recalculate reputation? #34

Open virusman opened 11 years ago

virusman commented 11 years ago

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 commented 10 years ago

Did you find a method to recalc the reputations?

virusman commented 10 years ago

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.