OSDN Git Service
(root)
/
redminele
/
redminele.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add Redmine trunk rev 3089
[redminele/redminele.git]
/
redmine
/
vendor
/
plugins
/
awesome_nested_set
/
test
/
fixtures
/
category.rb
1
class Category < ActiveRecord::Base
2
acts_as_nested_set
3
4
def to_s
5
name
6
end
7
8
def recurse &block
9
block.call self, lambda{
10
self.children.each do |child|
11
child.recurse &block
12
end
13
}
14
end
15
end