8 lines
330 B
Ruby
8 lines
330 B
Ruby
class FileManagerRoot
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
RootPath = "public/"
|
|
field :disable_path_traversal, :type => Boolean, :default => true
|
|
has_many :file_manager_settings, :autosave => true, :dependent => :destroy
|
|
accepts_nested_attributes_for :file_manager_settings, :allow_destroy => true
|
|
end |