Forum: Radiant CMS how to skip changed_attributes in YAML

91a616ee807e220c8ffccb5f2ad33731?d=identicon&s=25 Vamsi Krishna (vamsikrishna)
on 2009-10-23 07:49
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.
This topic is locked and can not be replied to.