Class: ElFinder2::Command::Tree
- Defined in:
- lib/el_finder2/command/tree.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from HashUtils
#from_base64url, #to_base64url, #to_path
Constructor Details
This class inherits a constructor from ElFinder2::Command::Base
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/el_finder2/command/tree.rb', line 4 def execute children = @folder.children.where(type: 'ElFinder2::Folder') render json: { tree: ActiveModel::ArraySerializer.new(children).as_json } end |