lib/active_recall/models/item.rb in active_recall-1.3.0 vs lib/active_recall/models/item.rb in active_recall-1.4.0
- old
+ new
@@ -20,14 +20,14 @@
def source
source_type.constantize.find(source_id)
end
def right!
- update!(algorithm_class.right(scoring_attributes))
+ update!(algorithm_class.right(**scoring_attributes))
end
def wrong!
- update!(algorithm_class.wrong(scoring_attributes))
+ update!(algorithm_class.wrong(**scoring_attributes))
end
private
def algorithm_class