Class: ElFinder2::ElFinderController

Inherits:
ApplicationController show all
Defined in:
app/controllers/el_finder2/el_finder_controller.rb

Instance Method Summary collapse

Instance Method Details

#commandObject



5
6
7
8
9
10
# File 'app/controllers/el_finder2/el_finder_controller.rb', line 5

def command
  Command.dispatch(self, params.dup)
  fail Exception.new('Command failed to render') unless performed?
rescue ElFinder2::Error => ex
  render json: { error: ex.payload }
end