Sha256: 6a60ef11ad8b204ca938b6c5709a02b83efc01750d9158d316e6be4f363a4903

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

module ActiveRecall
  module ItemMethods
    def right_answer_for!(item)
      deck.items.find_by(source_id: item.id).right!
    end

    def wrong_answer_for!(item)
      deck.items.find_by(source_id: item.id).wrong!
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_recall-1.8.6 lib/active_recall/item_methods.rb
active_recall-1.8.5 lib/active_recall/item_methods.rb
active_recall-1.8.4 lib/active_recall/item_methods.rb
active_recall-1.8.3 lib/active_recall/item_methods.rb
active_recall-1.8.0 lib/active_recall/item_methods.rb
active_recall-1.6.4 lib/active_recall/item_methods.rb
active_recall-1.6.3 lib/active_recall/item_methods.rb
active_recall-1.6.2 lib/active_recall/item_methods.rb
active_recall-1.6.1 lib/active_recall/item_methods.rb