Sha256: c8e358e04721ddcfe012f577ee3e0f772b07e0fdb8b9622fa2061346cf6a7a4f

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true

require 'active_recall/base'
require 'active_recall/deck_methods'
require 'active_recall/item_methods'
require 'active_recall/algorithms/fibonacci_sequence'
require 'active_recall/algorithms/leitner_system'
require 'active_recall/configuration'
require 'active_recall/models/deck'
require 'active_recall/models/item'
require 'active_recall/version'

ActiveRecord::Base.include ActiveRecall::Base

module ActiveRecall
  class << self
    attr_writer :configuration
  end

  def self.configure
    yield(configuration)
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_recall-1.6.4 lib/active_recall.rb
active_recall-1.6.3 lib/active_recall.rb
active_recall-1.6.2 lib/active_recall.rb
active_recall-1.6.1 lib/active_recall.rb
active_recall-1.6.0 lib/active_recall.rb
active_recall-1.5.0 lib/active_recall.rb
active_recall-1.4.0 lib/active_recall.rb