You can clone with
I've noticed the following.
If I do:
user = User.first.all
returns true as expected.
If I have an objected that is Embedded in the User class like:
and I do the following:
profile = User.all.first.profile
it returns false.
I've been struggling to understand why, and I'm wondering whether mongoid is producing this strange behaviour?
profile.user in your case is actually a proxy to the user, but the extends method fell through... We can fix this.
Fix proxy extension. Fixes #1933