summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 14:19:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 14:19:42 +0000
commit95811c8e4c427b06d8e6ad5377c1e64b1591e8b3 (patch)
tree4d44713d38bf47c92f800da2a760475af1b6e53f /app/controllers/projects_controller.rb
parent0f721f6f7bd192145acddaaea2ca2787eab75e09 (diff)
downloadredmine-95811c8e4c427b06d8e6ad5377c1e64b1591e8b3.tar.gz
redmine-95811c8e4c427b06d8e6ad5377c1e64b1591e8b3.zip
Removed dead code.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8946 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 44e77bc62..eea8aca14 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -242,14 +242,7 @@ class ProjectsController < ApplicationController
@project = nil
end
-private
- def find_optional_project
- return true unless params[:id]
- @project = Project.find(params[:id])
- authorize
- rescue ActiveRecord::RecordNotFound
- render_404
- end
+ private
# Validates parent_id param according to user's permissions
# TODO: move it to Project model in a validation that depends on User.current