#9 Active Storage - io must be rewindable

This commit is contained in:
Karel Pičman 2025-11-27 12:27:40 +01:00
parent b3d6c81f81
commit 96921f43ce

View File

@ -50,13 +50,12 @@ module RedmineDmsf
end end
def dmsf_index_database def dmsf_index_database
if Setting.plugin_redmine_dmsf['dmsf_index_database'].present? dir = if Setting.plugin_redmine_dmsf['dmsf_index_database'].present?
dir = Setting.plugin_redmine_dmsf['dmsf_index_database'].strip Setting.plugin_redmine_dmsf['dmsf_index_database'].strip
else else
dir = File.expand_path('dmsf_index', Rails.root) File.expand_path('dmsf_index', Rails.root)
end end
FileUtils.mkdir_p(dir) unless Dir.exist?(dir) FileUtils.mkdir_p dir
dir
end end
def dmsf_stemming_lang def dmsf_stemming_lang