Module: Shrine::Plugins::ZipGuard::AttacherMethods
- Defined in:
- lib/shrine/plugins/zip_guard.rb
Instance Method Summary collapse
Instance Method Details
#create_derivatives(*args, **options) ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'lib/shrine/plugins/zip_guard.rb', line 48 def create_derivatives(*args, **, &) super rescue ZipGuard::EncryptedZipError errors << I18n.t(("password_protected")) rescue ZipGuard::MissingFileError => e errors << I18n.t(("missing_file"), pattern: e.pattern) rescue ZipGuard::Error => e handle_zip_guard_error(e) end |