Merge commit 'dfa5889fc0
' into kb_migration
This commit is contained in:
commit
4a19077534
285 changed files with 938 additions and 822 deletions
|
@ -378,11 +378,11 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def fields
|
||||
(self[:fields] || []).map do |f|
|
||||
(self[:fields] || []).filter_map do |f|
|
||||
Account::Field.new(self, f)
|
||||
rescue
|
||||
nil
|
||||
end.compact
|
||||
end
|
||||
end
|
||||
|
||||
def fields_attributes=(attributes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue