Skip to content

Commit

Permalink
fix association has_and_belong_to_many
Browse files Browse the repository at this point in the history
  • Loading branch information
Giallombardo Nathan committed Jul 18, 2024
1 parent 9e8eddb commit 63fe340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchbase-orm/associations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def has_and_belongs_to_many(name, **options)
elsif options[:polymorphic]
::CouchbaseOrm.try_load(ref_value)
else
assoc.constantize.find(ref_value)
assoc.constantize.find(ref_value, quiet: true)
end
val = Array.wrap(val || [])
instance_variable_set(instance_var, val)
Expand Down

0 comments on commit 63fe340

Please sign in to comment.