Method: Lockbox::ActiveStorageExtensions::AttachedOne#rotate_encryption!
- Defined in:
- lib/lockbox/active_storage_extensions.rb
#rotate_encryption! ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/lockbox/active_storage_extensions.rb', line 44 def rotate_encryption! raise "Not encrypted" unless encrypted? attach(Utils.rebuild_attachable(self)) if attached? true end |