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.pre8 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre9 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre7 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre5 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre6 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre4 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre3 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.0.0.pre1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.2.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.2.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.2.0 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.7 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.6 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.5 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.4 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.3 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.2 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.1 app/components/avo/fields/belongs_to_field/show_component.rb
avo-3.1.0 app/components/avo/fields/belongs_to_field/show_component.rb