]> source.dussan.org Git - redmine.git/commitdiff
Use #find_project_by_project_id from super-class.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Mar 2012 20:03:05 +0000 (20:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Mar 2012 20:03:05 +0000 (20:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9160 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issue_categories_controller.rb

index 4701142d0a63eff1e6ada4eac3d32c7f0f51e9a5..7036364974ce0d5890804e8a8c6df2f56ed48b1a 100644 (file)
@@ -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