title: Mongoid dynamic finder with Mongoid::Errors::DocumentNotFound exception raised
body: <p>I'm building a REST api for this project that uses Mongoid.</p>
  
  <p>I've setup the following to catch the <code>Mongoid::Errors::DocumentNotFound</code> exception:</p>
  
  <pre><code>rescue_from Mongoid::Errors::DocumentNotFound in my base controller
  </code></pre>
  
  <p>In my controller I've this query code:</p>
  
  <pre><code>@current_account.users.find(:first, :conditions =&gt; {:name =&gt; "some_name"})
  </code></pre>
  
  <p>The above query just returns <code>nil</code>. It doesn't raise the exception.
  Tried with another syntax as well:</p>
  
  <pre><code>User.find(:conditions =&gt; {:name =&gt; "same"}).first
  </code></pre>
  
  <p>All those methods just runs <code>where</code> internally and afaik <code>where</code> doesn't raise exception, its simply returns <code>[]</code></p>
  
  <p>So what can be the solution to this? I want partially dynamic finder but should raise the exception too?</p>