view .svn/pristine/ae/aea86446e90f5223c778c46b31f7dc023774621a.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
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