Sha256: 9c998957b1c0685e5ad00a8e9c45a46c13f8babca82706fe323b6a4705f6adcc
Contents?: true
Size: 334 Bytes
Versions: 19
Compression:
Stored size: 334 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.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
19 entries across 19 versions & 1 rubygems