Class: Categoryz3::Item

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/categoryz3/item.rb

Instance Method Summary collapse

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