From cb591d0af65dee0b39365fc55b336f9321c2da54 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 25 Nov 2019 06:32:28 +0000 Subject: [PATCH] code layout clean up app/controllers/application_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19284 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/application_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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?) -- 2.39.5