From d3381fb518d79f815407ffc70d27cbda4208fc9e Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 20 Oct 2010 21:26:30 +0000 Subject: Refactor: change :id on WikiController to use :project_id Using :id to track projects on non-project controllers is confusing and makes routing with resources difficult. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4265 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redmine.rb b/lib/redmine.rb index 51c865452..7fe090826 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -195,7 +195,7 @@ Redmine::MenuManager.map :project_menu do |menu| menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar menu.push :news, { :controller => 'news', :action => 'index' }, :param => :project_id, :caption => :label_news_plural menu.push :documents, { :controller => 'documents', :action => 'index' }, :param => :project_id, :caption => :label_document_plural - menu.push :wiki, { :controller => 'wiki', :action => 'index', :page => nil }, + menu.push :wiki, { :controller => 'wiki', :action => 'index', :page => nil }, :param => :project_id, :if => Proc.new { |p| p.wiki && !p.wiki.new_record? } menu.push :boards, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id, :if => Proc.new { |p| p.boards.any? }, :caption => :label_board_plural -- cgit v1.2.3