Class: Avo::Fields::Common::Files::ControlsComponent

Inherits:
BaseComponent
  • Object
show all
Includes:
Avo::Fields::Concerns::FileAuthorization
Defined in:
app/components/avo/fields/common/files/controls_component.rb

Instance Method Summary collapse

Methods included from Avo::Fields::Concerns::FileAuthorization

#can_delete_file?, #can_download_file?, #can_reupload_file?, #can_upload_file?

Instance Method Details

#destroy_pathObject



12
13
14
# File 'app/components/avo/fields/common/files/controls_component.rb', line 12

def destroy_path
  Avo::Services::URIService.parse(@resource.record_path).append_paths("active_storage_attachments", id, @file.id).to_s
end