Module: AttrEncrypted::Adapters::ActiveRecord::InstanceMethods
- Defined in:
- lib/attr_encrypted/adapters/active_record.rb
Instance Method Summary collapse
Instance Method Details
#resave_encrypted_attributes ⇒ Object
17 18 19 20 21 |
# File 'lib/attr_encrypted/adapters/active_record.rb', line 17 def resave_encrypted_attributes self.class.encrypted_attributes.each do |attribute, encrypted_attribute_method| send("#{attribute}=", instance_variable_get("@#{attribute}")) if instance_variable_get("@#{attribute}").present? end end |