Sha256: ad68711dbda3c80f3999184359971a073f1be5b1ea436f8bc2a116854a444b70
Contents?: true
Size: 369 Bytes
Versions: 68
Compression:
Stored size: 369 Bytes
Contents
# frozen_string_literal: true class Avo::Fields::BelongsToField::EditComponent < Avo::Fields::EditComponent def disabled return true if @field.readonly return true if @field.target_resource.present? && @field.target_resource.model_class.name == params[:via_resource_class] return true if @field.id.to_s == params[:via_relation].to_s false end end
Version data entries
68 entries across 68 versions & 1 rubygems