title: Shortcut for plucking two attributes from an ActiveRecord object?
body: <p>Is there a shorter way to do the following (</p>
  
  <pre><code>@user.employees.map { |e| { id: e.id, name: e.name } }
  # =&gt; [{ id: 1, name: 'Pete' }, { id: 2, name: 'Fred' }]
  </code></pre>
  
  <p><code>User</code> <code>has_many</code> employees. Both classes inherit from <code>ActiveRecord::Base</code>.</p>
  
  <p>Two things I don't like about the above</p>
  
  <ol>
  <li>It loads employees into memory before mapping,</li>
  <li>It's verbose (subjective I guess).</li>
  </ol>
  
  <p>Is there a better way?</p>