Sha256: 7988231dc8c6b0f6dc59f53dcc969d90bd54e56e5d27cc6388fb9eb19aca4694

Contents?: true

Size: 345 Bytes

Versions: 107

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

class Avo::Fields::BelongsToField::ShowComponent < Avo::Fields::ShowComponent
  def resource_view_path
    helpers.resource_view_path(
      record: @field.value,
      resource: @field.target_resource,
      via_resource_class: @resource.class.to_s,
      via_record_id: @resource.record.to_param
    )
  end
end

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
avo-3.10.10 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.9 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.8 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.7 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.6 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.5 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.4 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.3 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.10.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.9.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.9.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.8.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.9.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.8.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.8.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.6.4 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.6.3 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.6.2 app/components/avo/fields/belongs_to_field/show_component.rb