Skip to content

Commit

Permalink
🧹 Address Valkyrie's determination of multiple?
Browse files Browse the repository at this point in the history
  • Loading branch information
LaRita Robinson committed Jan 25, 2024
1 parent a239166 commit 2ad8741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/concerns/bulkrax/has_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def valkyrie_multiple?(field)
# TODO: there has got to be a better way. Only array types have 'of'
if factory_class.respond_to?(:schema)
sym_field = field.to_sym
factory_class.schema.key(sym_field).respond_to?(:of) if factory_class.fields.include?(sym_field)
return true if factory_class.schema.key(sym_field).primitive == Array
false
else
ar_multiple?(field)
end
Expand Down

0 comments on commit 2ad8741

Please sign in to comment.