Allow the root directory for data for file columns to be configured
This commit is contained in:
parent
f660d1e7e3
commit
37795719e8
2 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,8 @@ standard_settings: &standard_settings
|
|||
# Location of GPX traces and images
|
||||
gpx_trace_dir: "/home/osm/traces"
|
||||
gpx_image_dir: "/home/osm/images"
|
||||
# Location of data for file columns
|
||||
#file_column_root: ""
|
||||
|
||||
development:
|
||||
<<: *standard_settings
|
||||
|
|
3
config/initializers/file_column.rb
Normal file
3
config/initializers/file_column.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
if defined?(FILE_COLUMN_ROOT)
|
||||
FileColumn::ClassMethods::DEFAULT_OPTIONS[:root_path] = FILE_COLUMN_ROOT
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue