Sha256: 284908c0bb3e5f7113c744218b23c9c7c2ba931f30442cf3a8aff9e63386499c
Contents?: true
Size: 319 Bytes
Versions: 3
Compression:
Stored size: 319 Bytes
Contents
# frozen_string_literal: true module ActiveRecall module ItemMethods def right_answer_for!(item) i = deck.items.find_by(source_id: item.id) i.right! i.save! end def wrong_answer_for!(item) i = deck.items.find_by(source_id: item.id) i.wrong! i.save! end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_recall-1.6.0 | lib/active_recall/item_methods.rb |
active_recall-1.5.0 | lib/active_recall/item_methods.rb |
active_recall-1.4.0 | lib/active_recall/item_methods.rb |