diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-25 06:32:28 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-25 06:32:28 +0000 |
commit | cb591d0af65dee0b39365fc55b336f9321c2da54 (patch) | |
tree | 3fcb86aef77247922a00f030fc7d7614da60038c /app/controllers/application_controller.rb | |
parent | 045e8513c720f9eec0ff309bfa9c1dac6118fa61 (diff) | |
download | redmine-cb591d0af65dee0b39365fc55b336f9321c2da54.tar.gz redmine-cb591d0af65dee0b39365fc55b336f9321c2da54.zip |
code layout clean up app/controllers/application_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19284 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 62232ea06..ea579bfa8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -352,7 +352,9 @@ class ApplicationController < ActionController::Base def find_issues @issues = Issue. where(:id => (params[:id] || params[:ids])). - preload(:project, :status, :tracker, :priority, :author, :assigned_to, :relations_to, {:custom_values => :custom_field}). + preload(:project, :status, :tracker, :priority, + :author, :assigned_to, :relations_to, + {:custom_values => :custom_field}). to_a raise ActiveRecord::RecordNotFound if @issues.empty? raise Unauthorized unless @issues.all?(&:visible?) |