summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-14 16:24:07 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-14 16:24:07 +0000
commit1b90703157a182d37496ae4c8e3c430681abddc0 (patch)
treec70d5f5aa7efa398ca8e8d222cda6c1906e7b386 /lib
parent41c055363ee4826799b9ffe7d76fd399c89190d3 (diff)
downloadredmine-1b90703157a182d37496ae4c8e3c430681abddc0.tar.gz
redmine-1b90703157a182d37496ae4c8e3c430681abddc0.zip
Refactor: convert FilesController to a restful resource.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4085 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 9d59390c1..f8f564220 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -198,7 +198,7 @@ Redmine::MenuManager.map :project_menu do |menu|
: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
- menu.push :files, { :controller => 'files', :action => 'index' }, :caption => :label_file_plural
+ menu.push :files, { :controller => 'files', :action => 'index' }, :caption => :label_file_plural, :param => :project_id
menu.push :repository, { :controller => 'repositories', :action => 'show' },
:if => Proc.new { |p| p.repository && !p.repository.new_record? }
menu.push :settings, { :controller => 'projects', :action => 'settings' }, :last => true