Mercurial > hg > soundsoftware-site
view .svn/pristine/ae/aea86446e90f5223c778c46b31f7dc023774621a.svn-base @ 1492:54f320b40728 live
Merge
author | Chris Cannam |
---|---|
date | Mon, 17 Mar 2014 08:56:45 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class Category < ActiveRecord::Base acts_as_nested_set def to_s name end def recurse &block block.call self, lambda{ self.children.each do |child| child.recurse &block end } end end