title: Bundler Capistrano question: How does Rails know where my gems are?
body: <p>I'm using the standard bundler/capistrano recipe that installs all necessary gems on the server <code>after deploy:update_code</code></p>
  
  <p>Works like a charm and has simplified my life significantly.</p>
  
  <p>I'm using Rails 2.3.10 and 'patched' the boot.rb and created the preinitializer as was necessary.</p>
  
  <p>My question is, how does Rails know that my gems reside in the shared/bundle directory, and how does it know to use these?  Is this directory somehow automatically added to the load path?  How do these gems take precedent over system gems?</p>