How to skip changed_attributes in YAML


#1

Hi,

i’m getting the results like:

user=User.all
and i want to convert the user records to yaml so i used user.to_yaml,

i got the yml file thats nice, but before converting into yaml i need to
change some values of user records

like
puts user[0].password
it shows “vamsi”
but i want to change the password like(example) “%^@#A]//-0” some thing
like encryption.
for that i cahnged it as
user[0].password="%^@#A]//-0"

and after that i put user.to_yaml

and in the yml file i saw
password: %^@#A]//-0

after that changed_attributes:
password: vamsi

how could i remove the changed_attributes , as i don’t want to show the
password like vamsi.

Thanks
Vamsi.