Merge commit 'e387175fc9a3ebfd72ab45ebfe43ecfabef7b0c3' into glitch-soc/merge-upstream
This commit is contained in:
@@ -299,11 +299,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)
|
||||
|
Reference in New Issue
Block a user