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.0.0.pre19 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta8 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta9 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta6 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta7 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta5 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta4 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta3 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.beta1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.1.beta1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre17 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre18 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre14 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre16 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre15 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre13 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre12 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre10 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre11 app/components/avo/fields/belongs_to_field/show_component.rb