mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-01 13:19:39 +00:00
shorten long line of app/models/tracker.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20135 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a6b68a82c6
commit
9e08ea93ef
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user