title: RAILS Mongoid finding document by id
body: <p>When I do in rails console:</p>
  <pre><code>User.first
   =&gt; #&lt;User _id: 6241f97de64d1eb2cc003d08,.... 
  </code></pre>
  <p>I get document, but when I try to find it by id like</p>
  <p>User.find('6241f97de64d1eb2cc003d08') or User.find(BSON::ObjectId('6241f97de64d1eb2cc003d08')) or
  User.find('6241f97de64d1eb2cc003d08'.to_bson) etc</p>
  <p>I get:</p>
  <pre><code>message:                                                                          
    Document(s) not found for class User with id(s) 6241f97de64d1eb2cc003d08.   
  </code></pre>
  <p>also</p>
  <pre><code>3.0.3 :049 &gt; User.where(_id: BSON::ObjectId('6241f97de64d1eb2cc003d08')).find
   =&gt; nil 
  </code></pre>
  <p>Why it does not work????</p>
  <p>I use rails 7 and mongoid</p>