Class: ProductCategory

Inherits:
Category
  • Object
show all
Defined in:
app/models/product_category.rb

Instance Method Summary collapse

Instance Method Details

#total_elements_count_with_deletedObject



4
5
6
# File 'app/models/product_category.rb', line 4

def total_elements_count_with_deleted
  ([self.elements.count('id',:conditions => { :deleted => false})] + children.all(:select => 'id,type').map(&:total_elements_count)).sum
end