Hi
I have a database field where I want to store my password. In a before_create filter in my model I call a encryption function and save from clear text to encrypted text.
I want now to use the before_update also for encryption, but only if the value has changed. How can I write a condition for checking if a field value has changed?