diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-01 21:16:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-01 21:16:44 +0000 |
commit | 6475fe647414c47f0af7f3caa2fbfdd206b50c67 (patch) | |
tree | c162e8fe303368a76102f8b967734d2ac50ce1a1 /app/controllers/boards_controller.rb | |
parent | 2967023a0e4d27d5cbea7858b6f5f8b1af38f875 (diff) | |
download | redmine-6475fe647414c47f0af7f3caa2fbfdd206b50c67.tar.gz redmine-6475fe647414c47f0af7f3caa2fbfdd206b50c67.zip |
Controller cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8021 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/boards_controller.rb')
-rw-r--r-- | app/controllers/boards_controller.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index f9a507e6b..b5bce0c6a 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -17,15 +17,12 @@ class BoardsController < ApplicationController default_search_scope :messages - before_filter :find_project, :find_board_if_available, :authorize + before_filter :find_project_by_project_id, :find_board_if_available, :authorize accept_rss_auth :index, :show - helper :messages - include MessagesHelper helper :sort include SortHelper helper :watchers - include WatchersHelper def index @boards = @project.boards @@ -100,12 +97,6 @@ private redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards' end - def find_project - @project = Project.find(params[:project_id]) - rescue ActiveRecord::RecordNotFound - render_404 - end - def find_board_if_available @board = @project.boards.find(params[:id]) if params[:id] rescue ActiveRecord::RecordNotFound |