Class: ElVfs::ElFinderController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/el_vfs/el_finder_controller.rb

Instance Method Summary collapse

Instance Method Details

#runObject



5
6
7
8
9
10
11
12
13
14
# File 'app/controllers/el_vfs/el_finder_controller.rb', line 5

def run
  command = Connector.new.command_for(params)
  command.run
  command.headers.each { |h,v| headers[h] = v }
  json = command.result.try(:el_hash)
  respond_to do | format |
    format.html { render :json => json }
    format.json { render :json => json }
  end
end