Class: ElFinder2::ElFinderController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ElFinder2::ElFinderController
- Defined in:
- app/controllers/el_finder2/el_finder_controller.rb
Instance Method Summary collapse
Instance Method Details
#command ⇒ Object
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 |