You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
ActiveRecord Reputation System v2.0.0 has some backward incompatible changes.
Following describes how you can accommodate those changes.
reputation_value_for and normalized_reputation_value_for methods are deprecated.
You can use reputation_for, instead of reputation_value_for and normalized_reputation_for, instead of normalized_reputation_value_for.
init_value options for has_reputation is deprecated.
You can simply remove init_value option from your reputation definition.
RSEvaluation, RSReputation and RSReputationMessage are renamed to ReputationSystem::Evaluation, ReputationSystem::Reputation and `ReputationSystem::ReputationMessage correspondingly.
If you use these models directly in your application, you need to rename them accordingly.
Also, you need to update your database data as follow:
UPDATE rs_reputation_messages SET sender_type = 'ReputationSystem::Evaluation' WHERE sender_type = 'RSEvaluation'UPDATE rs_reputation_messages SET sender_type = 'ReputationSystem::Reputation' WHERE sender_type = 'RSReputation'