Module: DaffyLib::HasEncryptedAttributes
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/daffy_lib/concerns/has_encrypted_attributes.rb
Instance Method Summary collapse
Instance Method Details
#generate_encryption_epoch ⇒ Object
18 19 20 21 22 |
# File 'lib/daffy_lib/concerns/has_encrypted_attributes.rb', line 18 def generate_encryption_epoch return encryption_epoch if encryption_epoch.present? self.encryption_epoch = DaffyLib::KeyManagementService.encryption_key_epoch(Time.now) end |
#generate_partition_guid ⇒ Object
12 13 14 15 16 |
# File 'lib/daffy_lib/concerns/has_encrypted_attributes.rb', line 12 def generate_partition_guid return partition_guid if partition_guid.present? self.partition_guid = provider_partition_guid end |