diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-03-16 15:17:47 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-03-16 15:17:47 +0000 |
commit | e6c8760ad77a6d4256f11e409734b0501450e588 (patch) | |
tree | 7349850d4a56713a097595dc23a0443d45defc14 /app/controllers/issue_categories_controller.rb | |
parent | 6b88de1234524faa3beae8b54b2887dbb4a2867c (diff) | |
download | redmine-e6c8760ad77a6d4256f11e409734b0501450e588.tar.gz redmine-e6c8760ad77a6d4256f11e409734b0501450e588.zip |
Refactor: Split the find_object methods to prep for a larger refactoring.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3591 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issue_categories_controller.rb')
-rw-r--r-- | app/controllers/issue_categories_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb index 8c077cf7a..2904c2399 100644 --- a/app/controllers/issue_categories_controller.rb +++ b/app/controllers/issue_categories_controller.rb @@ -18,6 +18,7 @@ class IssueCategoriesController < ApplicationController menu_item :settings before_filter :find_category, :except => :new + before_filter :find_project_from_association, :except => :new before_filter :find_project, :only => :new before_filter :authorize @@ -73,8 +74,7 @@ class IssueCategoriesController < ApplicationController private def find_category - @category = IssueCategory.find(params[:id]) - @project = @category.project + @category = @object = IssueCategory.find(params[:id]) rescue ActiveRecord::RecordNotFound render_404 end |