Module: ActiveRecall::Base::ClassMethods
- Defined in:
- lib/active_recall/base.rb
Instance Method Summary collapse
Instance Method Details
#has_deck(name) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/active_recall/base.rb', line 10 def has_deck(name) define_method(:deck_name) { name } include ActiveRecall::DeckMethods include ActiveRecall::ItemMethods define_method(name) { deck } after_destroy(:remove_deck) end |