Module: Lockbox::ActiveStorageExtensions::AttachedOne
- Defined in:
- lib/lockbox/active_storage_extensions.rb
Instance Method Summary collapse
Instance Method Details
#rotate_encryption! ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/lockbox/active_storage_extensions.rb', line 37 def rotate_encryption! raise "Not encrypted" unless encrypted? attach(Utils.rebuild_attachable(self)) if attached? true end |