Sha256: 0871cca91df0bdbb86a8a52df8ccb8da46cb402ea094dc1163ada4489202c15c

Contents?: true

Size: 376 Bytes

Versions: 16

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

module ActiveRecall
  module Base
    extend ActiveSupport::Concern
    module ClassMethods
      def has_deck(name)
        define_method(:deck_name) { name }
        include ActiveRecall::DeckMethods
        include ActiveRecall::ItemMethods
        define_method(name) { deck }
        after_destroy(:remove_deck)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
active_recall-1.8.4 lib/active_recall/base.rb
active_recall-1.8.3 lib/active_recall/base.rb
active_recall-1.8.0 lib/active_recall/base.rb
active_recall-1.6.4 lib/active_recall/base.rb
active_recall-1.6.3 lib/active_recall/base.rb
active_recall-1.6.2 lib/active_recall/base.rb
active_recall-1.6.1 lib/active_recall/base.rb
active_recall-1.6.0 lib/active_recall/base.rb
active_recall-1.5.0 lib/active_recall/base.rb
active_recall-1.4.0 lib/active_recall/base.rb
active_recall-1.3.0 lib/active_recall/base.rb
active_recall-1.2.2 lib/active_recall/base.rb
active_recall-1.2.1 lib/active_recall/base.rb
active_recall-1.2.0 lib/active_recall/base.rb
active_recall-1.1.0 lib/active_recall/base.rb
active_recall-1.0.0 lib/active_recall/base.rb