mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-15 11:23:55 +08:00
10 lines
442 B
Ruby
10 lines
442 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'active_storage/previewer/libreoffice_previewer'
|
|
|
|
Rails.application.config.active_storage.previewers = [ActiveStorage::Previewer::PopplerPDFPreviewer,
|
|
ActiveStorage::Previewer::LibreofficePreviewer]
|
|
|
|
Rails.application.config.active_storage.variable_content_types << 'image/svg+xml'
|
|
|
|
Rails.application.config.active_storage.variant_processor = :vips
|