view .svn/pristine/ae/aea86446e90f5223c778c46b31f7dc023774621a.svn-base @ 1119:22d81bd0b62c redmine-2.2-integration

Deleted existing the embedded plugin and replaced it witgh redmine_embedded (same functionality, but upgraded to be compatible with Redmine 2.x).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 08 Jan 2013 14:43:04 +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