diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-07 20:03:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-07 20:03:05 +0000 |
commit | 036b81abfd552bb9df766986b1a3715e72a56564 (patch) | |
tree | 7557dc2471c9826d0cef302778077342469b0a75 | |
parent | 67e8d1113ef0d6b84cb03744ecab97db5715d157 (diff) | |
download | redmine-036b81abfd552bb9df766986b1a3715e72a56564.tar.gz redmine-036b81abfd552bb9df766986b1a3715e72a56564.zip |
Use #find_project_by_project_id from super-class.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9160 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/issue_categories_controller.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb index 4701142d0..703636497 100644 --- a/app/controllers/issue_categories_controller.rb +++ b/app/controllers/issue_categories_controller.rb @@ -20,7 +20,7 @@ class IssueCategoriesController < ApplicationController model_object IssueCategory before_filter :find_model_object, :except => [:index, :new, :create] before_filter :find_project_from_association, :except => [:index, :new, :create] - before_filter :find_project, :only => [:index, :new, :create] + before_filter :find_project_by_project_id, :only => [:index, :new, :create] before_filter :authorize accept_api_auth :index, :show, :create, :update, :destroy @@ -116,10 +116,4 @@ private super @category = @object end - - def find_project - @project = Project.find(params[:project_id]) - rescue ActiveRecord::RecordNotFound - render_404 - end end |