lib/avo/fields/belongs_to_field.rb in avo-2.0.0 vs lib/avo/fields/belongs_to_field.rb in avo-2.1.0

- old
+ new

@@ -68,10 +68,10 @@ super(id, **args, &block) @searchable = args[:searchable] == true @polymorphic_as = args[:polymorphic_as] @types = args[:types] - @relation_method = name.to_s.parameterize.underscore + @relation_method = id.to_s.parameterize.underscore end def searchable @searchable && ::Avo::App.license.has_with_trial(:searchable_associations) end