Class: ElFinder2::Folder
- Defined in:
- app/models/el_finder2/folder.rb
Constant Summary collapse
- ROOT =
where(name: 'Root', parent_id: nil).first_or_create
Instance Method Summary collapse
Methods inherited from File
find_by_path, #path, path_exists?, #path_hash, upload_attributes
Methods included from HashUtils
#from_base64url, #to_base64url, #to_path
Instance Method Details
#size ⇒ Object
5 6 7 |
# File 'app/models/el_finder2/folder.rb', line 5 def size descendants.to_a.sum(&:size) end |