Class: NeetoEditor::Api::V1::DirectUploadsController

Inherits:
NeetoCommonsBackend::Api::DirectUploadsController
  • Object
show all
Defined in:
app/controllers/neeto_editor/api/v1/direct_uploads_controller.rb

Instance Method Summary collapse

Instance Method Details

#attachObject



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