Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
@@ -299,7 +299,11 @@ class Account < ApplicationRecord
|
||||
end
|
||||
|
||||
def fields
|
||||
(self[:fields] || []).map { |f| Field.new(self, f) }
|
||||
(self[:fields] || []).map do |f|
|
||||
Field.new(self, f)
|
||||
rescue
|
||||
nil
|
||||
end.compact
|
||||
end
|
||||
|
||||
def fields_attributes=(attributes)
|
||||
|
Reference in New Issue
Block a user