lib/active_record/acts/category.rb
# Returns array of IDs of descendants
Returns array of IDs of descendants
Returns array of IDs of descendants
def descendants_ids
       	  descendants_ids = [] 
       	  self.children.each { |child|
       	    descendants_ids += [child.id] unless child.hidden?
       	    descendants_ids += child.descendants_ids
       	  } unless self.children.empty?
       	  descendants_ids
       	end
def descendants_ids descendants_ids = [ ] self . children . each { | child | descendants_ids += [ child . id ] unless child . hidden? descendants_ids += child . descendants_ids } unless self . children . empty? descendants_ids end
Returns array of IDs of descendants
Returns array of IDs of descendants