Class: Email
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Defined in:
- lib/generators/install_contact_sync/templates/email.rb
Instance Method Summary collapse
Instance Method Details
#email ⇒ Object
5 6 7 |
# File 'lib/generators/install_contact_sync/templates/email.rb', line 5 def email return self.encrypted_email.decrypt(:symmetric) end |
#email=(string) ⇒ Object
9 10 11 12 |
# File 'lib/generators/install_contact_sync/templates/email.rb', line 9 def email=(string) self.encrypted_email = string.encrypt(:symmetric) self.encrypted_email end |