I have a class in which the data is encrypted and stored for all
fields.
Whenever the record is loaded from database, the data should be
decrypted.
If there was a after_find callback, we could have done the decryption
in that, but after_find doesnot exist.
So how can we implement after_find or is there any other callback
which can be useful.
Regards,
Pankaj
On Jun 16, 9:37 am, pankaj [email protected] wrote:
I have a class in which the data is encrypted and stored for all
fields.
Whenever the record is loaded from database, the data should be
decrypted.
If there was a after_find callback, we could have done the decryption
in that, but after_find doesnot exist.
So how can we implement after_find or is there any other callback
which can be useful.
Regards,
Pankaj
According to
after_find does exists.
Fred