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