title: How to handle environmental variables in the model
body: <p>I'm trying Indextank for search.</p>
  
  <p>In the model:</p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
  
    tankit 'rails_3_demo' do
      indexes :title
      indexes :content
    end
  </code></pre>
  
  <p>Problem with this is that dev/test/staging/prod environments are all using the same index. What's the right way to make sure the environments are using the right env index?</p>
  
  <p>Thanks,</p>
  
  <p>GEM: <a href="https://github.com/kidpollo/tanker" rel="nofollow">https://github.com/kidpollo/tanker</a></p>