Sha256: 64e5646d7230a6838c6b3c90539163e9d80db3068b39b8d4b8cda345186a9431

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

class Avo::Fields::Common::Files::ControlsComponent < Avo::BaseComponent
  include Avo::ApplicationHelper
  include Avo::Fields::Concerns::FileAuthorization

  delegate :id, to: :@field

  prop :field
  prop :file
  prop :resource

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avo-3.15.1 app/components/avo/fields/common/files/controls_component.rb
avo-3.15.0 app/components/avo/fields/common/files/controls_component.rb
avo-3.14.5 app/components/avo/fields/common/files/controls_component.rb
avo-3.14.4 app/components/avo/fields/common/files/controls_component.rb
avo-3.14.3 app/components/avo/fields/common/files/controls_component.rb
avo-3.14.2 app/components/avo/fields/common/files/controls_component.rb
avo-3.14.1 app/components/avo/fields/common/files/controls_component.rb
avo-3.14.0 app/components/avo/fields/common/files/controls_component.rb
avo-3.13.7 app/components/avo/fields/common/files/controls_component.rb
avo-3.13.6 app/components/avo/fields/common/files/controls_component.rb