Module: ActiveStorageSaas::DirectUploadsControllerMixin::InstanceMethods
- Defined in:
- lib/active_storage_saas/direct_uploads_controller_mixin.rb
Instance Method Summary collapse
Instance Method Details
#callback ⇒ Object
19 20 21 |
# File 'lib/active_storage_saas/direct_uploads_controller_mixin.rb', line 19 def callback ActiveStorageSaas.direct_upload_callback.call(self) end |
#create ⇒ Object
14 15 16 17 |
# File 'lib/active_storage_saas/direct_uploads_controller_mixin.rb', line 14 def create blob = ActiveStorage::Blob.create!(blob_args) render json: direct_upload_json(blob) end |