Method: Lockbox::ActiveStorageExtensions::Attachment#preview

Defined in:
lib/lockbox/active_storage_extensions.rb

#preview(*args) ⇒ Object

Raises:



122
123
124
125
# File 'lib/lockbox/active_storage_extensions.rb', line 122

def preview(*args)
  raise Lockbox::Error, "Preview not supported for encrypted files" if Utils.encrypted_options(record, name)
  super
end