How to skip changed_attributes in YAML


i’m getting the results like:

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

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

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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs