I have a script that has multiple different sections where different attributes may be updated.
Is there a way for me to see which attributes have been marked for update (i.e. the resulting list of set_attributes
for a record, so I can see what all attributes have been updated after I've processed my record? My reason for this is so that I can log the record name and any attributes that have been updated on it, and I would prefer not to keep track of the attributes throughout the updates.
I see a __attributes_to_update
variable on the Record class, which does what I want, but since it's a private attribute (and gets mangled to be _Record__attributes_to_update
), I was wondering if there was a better way to access it?