diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-11-25 05:36:44 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-11-25 05:36:44 +0000 |
commit | 1f06cf889990d9640f7160c4969ed074fb68a7ca (patch) | |
tree | 034ebf2c1567b0d707af669b3ccd1f403237a866 /config/environment.rb | |
parent | 5a9528cf3d9eb4afbec81cf1d79f7134596906f1 (diff) | |
download | redmine-1f06cf889990d9640f7160c4969ed074fb68a7ca.tar.gz redmine-1f06cf889990d9640f7160c4969ed074fb68a7ca.zip |
Converted Menus to a Tree structure to allow submenus.
* Bundle the rubytree gem
* Patched RubyTree's TreeNode to add some additional methods.
* Converted the menu rendering to walk the Tree of MenuItems to render
each item
* Added a menu option for :parent_menu to make this menu a child of the parent
* Added a bunch of tests
* Made MenuItem a subclass of Tree::TreeNode in order to use it's methods
directly
* Changed the exceptions in MenuItem#new to be ArgumentErrors instead of the
generic RuntimeError
#4250
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3090 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb index e6d42592f..1df06f5a0 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -50,6 +50,8 @@ Rails::Initializer.run do |config| # It will automatically turn deliveries on config.action_mailer.perform_deliveries = false + config.gem 'rubytree', :lib => 'tree' + # Load any local configuration that is kept out of source control # (e.g. gems, patches). if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) |