Module: Avo::Fields::Concerns::IsReadonly

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

Instance Method Summary collapse

Instance Method Details

#is_readonly?Boolean

Returns:

  • (Boolean)


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

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