lib/active_recall/models/item.rb in active_recall-2.0.1 vs lib/active_recall/models/item.rb in active_recall-2.0.2
- old
+ new
@@ -19,10 +19,10 @@
def score!(grade)
if algorithm_class.type == :gradable
update!(
algorithm_class.score(**scoring_attributes.merge(grade: grade))
- ).score
+ )
else
raise IncompatibleAlgorithmError, "#{algorithm_class.name} is a not an gradable algorithm, so is not compatible with the #score! method"
end
end