|
|
@ -241,6 +241,7 @@ class Account < ApplicationRecord
|
|
|
|
def fields_attributes=(attributes)
|
|
|
|
def fields_attributes=(attributes)
|
|
|
|
fields = []
|
|
|
|
fields = []
|
|
|
|
old_fields = self[:fields] || []
|
|
|
|
old_fields = self[:fields] || []
|
|
|
|
|
|
|
|
old_fields = [] if old_fields.is_a?(Hash)
|
|
|
|
|
|
|
|
|
|
|
|
if attributes.is_a?(Hash)
|
|
|
|
if attributes.is_a?(Hash)
|
|
|
|
attributes.each_value do |attr|
|
|
|
|
attributes.each_value do |attr|
|
|
|
|