lib/avo/base_resource.rb in avo-0.5.0.beta14 vs lib/avo/base_resource.rb in avo-0.5.0.beta15
- old
+ new
@@ -220,10 +220,10 @@
fields_by_database_id = get_field_definitions.map { |field| [field.database_id(model).to_s, field] }.to_h
params.each do |key, value|
field = fields_by_database_id[key]
- next unless field
+ next unless field.present?
model = field.fill_field model, key, value
end
model