Sha256: 5c45c731e43b0f3e0280baddec0bd11457c2ddb54c7df2a5c3bb3e4bd8a36c6e

Contents?: true

Size: 345 Bytes

Versions: 67

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(
      model: @field.value,
      resource: @field.target_resource,
      via_resource_class: @resource.class.to_s,
      via_resource_id: @resource.model.to_param
    )
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
avo-2.53.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.52.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.49.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.48.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.47.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.46.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.45.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.44.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.43.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.42.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.42.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.42.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.41.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.40.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.39.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.38.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.37.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.37.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.37.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-2.36.3 app/components/avo/fields/belongs_to_field/show_component.rb