summaryrefslogtreecommitdiffstats
path: root/app/controllers/gantts_controller.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-04-30 17:24:11 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-04-30 17:24:11 +0000
commit306ca5e7145a6d382da497d059b369c8b64f9599 (patch)
tree2f06cc14287b6ac7fafe545b3f84600242919150 /app/controllers/gantts_controller.rb
parentf65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93 (diff)
downloadredmine-306ca5e7145a6d382da497d059b369c8b64f9599.tar.gz
redmine-306ca5e7145a6d382da497d059b369c8b64f9599.zip
Refactor: Pull up #find_optional_project to ApplicationController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3716 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/gantts_controller.rb')
-rw-r--r--app/controllers/gantts_controller.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/controllers/gantts_controller.rb b/app/controllers/gantts_controller.rb
index 3933577c5..bc2d6350c 100644
--- a/app/controllers/gantts_controller.rb
+++ b/app/controllers/gantts_controller.rb
@@ -42,15 +42,4 @@ class GanttsController < ApplicationController
end
end
- private
-
- # TODO: Refactor, duplicates IssuesController
- def find_optional_project
- @project = Project.find(params[:project_id]) unless params[:project_id].blank?
- allowed = User.current.allowed_to?({:controller => params[:controller], :action => params[:action]}, @project, :global => true)
- allowed ? true : deny_access
- rescue ActiveRecord::RecordNotFound
- render_404
- end
-
end