Skip to content

Commit

Permalink
Update proxy.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored Nov 7, 2023
1 parent 9163c2a commit 7522238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/association/embedded/embeds_many/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def destroy_all(conditions = {})
# queries for the existence of persisted documents in the
# association with a matching _id.
#
# @return [ true | false ] True is persisted documents exist, false if not.
# @return [ true | false ] True if persisted documents exist, false if not.
def exists?(id_or_conditions = :none)
return _target.any?(&:persisted?) if id_or_conditions == :none

Expand Down

0 comments on commit 7522238

Please sign in to comment.