title: Get array of attribute values, along with an attribute from a join
body: <p>I've gotten close, I believe.  My current query is this</p>
  
  <pre><code>items = Item.select("items.icon, items.name, item_types.name AS type, items.level, items.rarity, items.vendor_value")
  .joins(:item_type)
  .where("item_types.name = '#{params[:item_type]}'")
  </code></pre>
  
  <p>This gets me an array of Item objects that at least respond to <code>:type</code> with the item_type.name.</p>
  
  <p>What I am looking for is an array of arrays that look so:</p>
  
  <pre><code>[icon, name, item_type.name, level, rarity, vendor_value]
  </code></pre>
  
  <p>I've already had it working fairly easily, but it is important to me that this be done in one fell swoop via sql, instead of creating a map afterwards, because there are times where I need to respond with 40k+ items and need this to be as fast as possible.</p>
  
  <p>Not sure how to go from the above to an array of attributes, without performing a map.</p>
  
  <p>Thanks for your help!</p>