Refactor: convert FilesController to a restful resource.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4085 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-09-14 16:24:07 +00:00
parent 41c055363e
commit 1b90703157
7 changed files with 12 additions and 17 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
class FilesController < ApplicationController
menu_item :files
before_filter :find_project
before_filter :find_project_by_project_id
before_filter :authorize
helper :sort
@@ -31,6 +31,6 @@ class FilesController < ApplicationController
if !attachments.empty? && Setting.notified_events.include?('file_added')
Mailer.deliver_attachments_added(attachments[:files])
end
redirect_to :controller => 'files', :action => 'index', :id => @project
redirect_to project_files_path(@project)
end
end