Closed ebollens closed 9 years ago
Probably in full something like:
payload['attributes'] = payload['original']
if payload.include? 'journal'
['use','require'].each do |type|
payload['journal'].each do |entry|
entry[type].each do |key, value|
if custom_attribute_squash? key
attribute_squash(key, type, payload, value)
else
payload['attributes'][type][key] = value
end
end
end
end
end
Right now, it includes the following to write into attributes:
It should be: