Module: Avo::Fields::Concerns::IsDisabled

Extended by:
ActiveSupport::Concern
Included in:
BaseField
Defined in:
lib/avo/fields/concerns/is_disabled.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#disabledObject (readonly)

Returns the value of attribute disabled.



7
8
9
# File 'lib/avo/fields/concerns/is_disabled.rb', line 7

def disabled
  @disabled
end

Instance Method Details

#is_disabled?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/avo/fields/concerns/is_disabled.rb', line 9

def is_disabled?
  Avo::ExecutionContext.new(target: disabled, record: record, view: view, resource: resource).handle
end