lib/avo/fields/belongs_to_field.rb in avo-2.15.3 vs lib/avo/fields/belongs_to_field.rb in avo-2.16.0

- old
+ new

@@ -208,10 +208,10 @@ end model end - def database_id(model) + def database_id # If the field is a polymorphic value, return the polymorphic_type as key and pre-fill the _id in fill_field. return "#{polymorphic_as}_type" if polymorphic_as.present? foreign_key rescue