module Lockbox::ActiveStorageExtensions::Attached

Protected Instance Methods

encrypt_attachable(attachable) click to toggle source
# File lib/lockbox/active_storage_extensions.rb, line 31
def encrypt_attachable(attachable)
  Utils.encrypt_attachable(record, name, attachable)
end
encrypted?() click to toggle source
# File lib/lockbox/active_storage_extensions.rb, line 25
def encrypted?
  # could use record_type directly
  # but record should already be loaded most of the time
  Utils.encrypted?(record, name)
end