Class: NeetoEditor::Api::V1::DirectUploadsController
- Inherits:
-
NeetoCommonsBackend::Api::DirectUploadsController
- Object
- NeetoCommonsBackend::Api::DirectUploadsController
- NeetoEditor::Api::V1::DirectUploadsController
- Defined in:
- app/controllers/neeto_editor/api/v1/direct_uploads_controller.rb
Instance Method Summary collapse
Instance Method Details
#attach ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/neeto_editor/api/v1/direct_uploads_controller.rb', line 6 def attach blob = ActiveStorage::Blob.find(params[:id]) @organization.neeto_editor_assets.create!(blob_id: blob.id, file: blob) render_success end |