summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 16:39:31 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 16:39:31 +0000
commitf891a28152f88885e548181e98bb81742002138f (patch)
tree7bbbccceb9cc36965ce427c2fe8035c1f3404b8d /app/controllers/issues_controller.rb
parent7a44f38c2c19654f1f6796f4143baf2837153e59 (diff)
downloadredmine-f891a28152f88885e548181e98bb81742002138f.tar.gz
redmine-f891a28152f88885e548181e98bb81742002138f.zip
code layout clean up app/controllers/issues_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18718 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index d1add3a81..a5981999c 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -284,7 +284,9 @@ class IssuesController < ApplicationController
if @copy
@attachments_present = @issues.detect {|i| i.attachments.any?}.present?
@subtasks_present = @issues.detect {|i| !i.leaf?}.present?
- @watchers_present = User.current.allowed_to?(:add_issue_watchers, @projects) && Watcher.where(:watchable_type => 'Issue', :watchable_id => @issues.map(&:id)).exists?
+ @watchers_present = User.current.allowed_to?(:add_issue_watchers, @projects) &&
+ Watcher.where(:watchable_type => 'Issue',
+ :watchable_id => @issues.map(&:id)).exists?
end
@safe_attributes = edited_issues.map(&:safe_attribute_names).reduce(:&)