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

Inherits:
BaseComponent
  • Object
show all
Includes:
ApplicationHelper, 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_upload_file?

Methods included from ApplicationHelper

#a_button, #a_link, #button_classes, #card_classes, #chart_color, #decode_filter_params, #empty_state, #encode_filter_params, #frame_id, #get_model_class, #input_classes, #mount_path, #number_to_social, #possibly_rails_authentication?, #render_license_warning, #root_path_without_url, #svg, #white_panel_classes

Methods included from ResourcesHelper

#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_selector_data_attributes, #resource_grid, #resource_show_path, #resource_table

Instance Method Details

#destroy_pathObject



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

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