tashfeen.ekram wrote:
> I am encrypting data mainly email addresses. I would like to use the
> validations built into rails however I am not sure how to do that
> given that the actual data stored in the database is an encrypted
> version. i would like to run the validation on the decrypted version
> of the data.

Okay, so perform your encryption after validation not before.

http://railsapi.com/doc/rails-v2.3.5/classes/ActiveRecord/Callbacks.html#M001182
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to