ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Fix monkey patching of rubytree in lib/redmine/menu_manager.rb (Bug #266)
lib/redmine/menu_manager.rb the rubytree gem is patched by Redmine/ChiliProject. During plugin development this regularly leads to Stack-Level-Too-Deep-Errors for me. This is caused by the unconditional aliasing of initialize. Because of this, I am unable to patch any functionality inside this source file, which includes the MenuManager and MenuHelper.
I propose to fix the unfortunate style of patching.
Note: I just want to fix my current itch. I guess, patching the rubytree gem itself might already cause some controversy, but this should IMHO not be discussed in this ticket. All I want to achieve is, that the given monkey patch becomes more robust.
Pull request is at https://github.com/chiliproject/chiliproject/pull/16
- Status changed from Open to Ready for review