summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-20 21:26:30 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-20 21:26:30 +0000
commitd3381fb518d79f815407ffc70d27cbda4208fc9e (patch)
tree13c9cc725cd01b96e5cdc018e53be568b17b7860 /lib
parentc058bc224549c82faa4771673a2126ebfe19ccf3 (diff)
downloadredmine-d3381fb518d79f815407ffc70d27cbda4208fc9e.tar.gz
redmine-d3381fb518d79f815407ffc70d27cbda4208fc9e.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb2
1 files changed, 1 insertions, 1 deletions
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