title: Rails select in scope
body: <p>In my model <code>User</code>, I have scope set up:</p>
  
  <pre><code>scope :count_likes, lambda { 
       select("(SELECT count(*) from another_model) AS count") 
  }
  </code></pre>
  
  <p>If I want to get all attributes of my User + count_likes, I have to do:</p>
  
  <pre><code>Model.count_likes.select("users.*")
  </code></pre>
  
  <p>because calling select() will the default <code>"*"</code></p>
  
  <p>I use <code>count_likes</code> scope a lot of my application and my issue is that I have to append select("users.*") everywhere.</p>
  
  <p>I know about the default scope, however, I don't think doing <code>select("users.*")</code> in default scope if a good idea.</p>
  
  <p>Is there a DRY / better way of doing this?</p>
  
  <p>Thanks</p>