FIX: Store user_accuracy_bonus to clarify explanations (#8165)

* FIX: Store user_accuracy_bonus to clarify explanations

* Fixed specs from rounding change

* migration cleanup

* user_accuracy_bonus column not nullable
This commit is contained in:
Mark VanLandingham
2019-10-08 08:49:07 -05:00
committed by Robin Ward
parent 4c9ed7bd85
commit 057f698e37
5 changed files with 28 additions and 8 deletions

View File

@@ -12,9 +12,4 @@ class ReviewableScoreExplanationSerializer < ApplicationSerializer
:user_accuracy_bonus,
:score
)
def user_accuracy_bonus
ReviewableScore.calc_user_accuracy_bonus(object.flags_agreed, object.flags_disagreed)
end
end