Class: Alchemy::Custom::Model::Admin::FilesController
- Inherits:
-
Object
- Object
- Alchemy::Custom::Model::Admin::FilesController
- Defined in:
- app/controllers/alchemy/custom/model/admin/files_controller.rb
Instance Method Summary collapse
Instance Method Details
#elfinder ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/alchemy/custom/model/admin/files_controller.rb', line 7 def elfinder :usage, Alchemy::Custom::Model::ElFinder h, r, f = connector.run(params) headers.merge!(h) if f.blank? render (r.empty? ? {:nothing => true} : {:plain => r.to_json}), :layout => false else send_file f[:path], disposition: :inline end end |