From 9e08ea93ef87d69aef580a45565c03e2e7953c8a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 11 Oct 2020 12:56:44 +0000 Subject: [PATCH] shorten long line of app/models/tracker.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20135 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/tracker.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/tracker.rb b/app/models/tracker.rb index b56108ae4..de44b8640 100644 --- a/app/models/tracker.rb +++ b/app/models/tracker.rb @@ -98,7 +98,11 @@ class Tracker < ActiveRecord::Base def disabled_core_fields i = -1 - @disabled_core_fields ||= CORE_FIELDS.select { i += 1; (fields_bits || 0) & (1 << i) != 0} + @disabled_core_fields ||= + CORE_FIELDS.select do + i += 1 + (fields_bits || 0) & (1 << i) != 0 + end end def core_fields -- 2.39.5