#9 Active Storage - io must be rewindable
This commit is contained in:
parent
b3d6c81f81
commit
96921f43ce
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user