title: Rails, code organization, where to keep map/reducer scripts?
body: <p>I know this is sort of a strange question, but as a neat freak I wanted to ask some pros about best practices on organizing my code.</p>
  
  <p>So we pretty much have ~10 map/reduce tasks (which are used by MongoDB) that all usually run in the background (with redis-scheduler), but there is quite a bit of code there and I don't want it to load unless explicitly stated, if I put it in my <code>lib</code> directory, won't it load in the app on production even when just booted by my web server? The fact that no user action in the app will make use of that particular code.</p>
  
  <p>So my question is, where should I keep them all, and how should I organize them?</p>