Module: Avo::Fields::Concerns::IsSearchable

Extended by:
ActiveSupport::Concern
Included in:
BelongsToField, HasBaseField
Defined in:
lib/avo/fields/concerns/is_searchable.rb

Instance Method Summary collapse

Instance Method Details

#is_searchable?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/avo/fields/concerns/is_searchable.rb', line 7

def is_searchable?
  return false unless defined?(Avo::Pro)

  @searchable && Avo.license.has_with_trial(:searchable_associations)
end