title: Getting around ruby-units conflict with activesupport
body: <p>I want to use the ruby-units with a rails 3 project, but it seems like it conflicts with activesupport. </p>
  
  <p>It looks to me like both activesupport and ruby-units create a to() method for String. For some reason, ruby-units one wins, and so whenever to() is called inside rails it throws an error. (Unit not recognized)</p>
  
  <p>I want to know the best way to deal with this. I don't care about having the to() method from ruby-units, I just don't want it to interfere with rails. I'd like to avoid forking if there's another approach.</p>
  
  <p>To see my problem:</p>
  
  <p>Add to your gemfile</p>
  
  <pre><code>gem 'ruby-units'
  </code></pre>
  
  <p>Open up <code>rails console</code> (I'm on rails 3 with ruby 1.9.2) and try <code>apples.to(1)</code></p>
  
  <p>Without ruby-units:</p>
  
  <pre><code>"ap"
  </code></pre>
  
  <p>With:</p>
  
  <pre><code>"'apples' Unit not recognized"
  </code></pre>