title: ActiveRecord anonymous scope
body: <p>I am learning about anonymous scope from watch RailsCast <a href="http://railscasts.com/episodes/112-anonymous-scopes" rel="nofollow">video</a>. When I try it myself, it seems like the statement:</p>
  
  <pre><code>scope = User.scoped
  </code></pre>
  
  <p>immediately queries the DB with SQL statement:</p>
  
  <pre><code>User Load (3.2ms)  SELECT `users`.* FROM `users` 
  </code></pre>
  
  <p>Before I even have a chance to chain conditions. This is obviously very inefficient and it's not happening when the author in the video does it. What am i missing?</p>
  
  <p>Also, at what point does the scope know that I am done chaining conditions and it's time to perform the query?</p>