Replaces #active_children with nested scopes #descendants.active

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2152 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-12-20 14:38:02 +00:00
parent 89ecc00326
commit 76462d76b5
7 changed files with 11 additions and 15 deletions
-4
View File
@@ -203,10 +203,6 @@ class Project < ActiveRecord::Base
end
end
def active_children
children.select {|child| child.active?}
end
# Returns an array of the trackers used by the project and its sub projects
def rolled_up_trackers
@rolled_up_trackers ||=