Refactor: Pull up several #find_project methods to ApplicationController

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3370 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-02-05 16:57:02 +00:00
parent d7725ecc06
commit e5d300af0a
6 changed files with 7 additions and 35 deletions
-7
View File
@@ -34,11 +34,4 @@ class WikisController < ApplicationController
redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'wiki'
end
end
private
def find_project
@project = Project.find(params[:id])
rescue ActiveRecord::RecordNotFound
render_404
end
end