Class: Categoryz3::Item
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Categoryz3::Item
- Defined in:
- app/models/categoryz3/item.rb
Instance Method Summary collapse
-
#reprocess_child_items! ⇒ Object
Public: Destroy the child items and recreate them.
Instance Method Details
#reprocess_child_items! ⇒ Object
Public: Destroy the child items and recreate them
14 15 16 17 |
# File 'app/models/categoryz3/item.rb', line 14 def reprocess_child_items! self.child_items.destroy_all create_child_items end |