title: Magento - Override the tablerate resource model
body: <p>I have read through the various threads on here however i can still not get the following problem resolved. I am attempting to override a resource Model using the method below, however i am having no luck at all.</p>
  
  <p>Magento Version: 1.7</p>
  
  <p>I would like to rewrite the the <strong>Mage_Shipping_Model_Resource_Carrier_Tablerate</strong>  class found at: </p>
  
  <pre><code>app/code/core/Mage/Shipping/Model/Resource/Carrier/Tablerate
  </code></pre>
  
  <p>I have copied the file too: </p>
  
  <pre><code>app/code/local/me/Shipping/Model/Resource/Carrier/Tablerate.php
  </code></pre>
  
  <p>and renamed the class within the file to:</p>
  
  <pre><code>me_Shipping_Model_Resource_Carrier_Tablerate
  </code></pre>
  
  <p>I have created a file in app/etc/modules/me_Shipping.xml that contains:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;me_Shipping&gt;
              &lt;active&gt;true&lt;/active&gt;
              &lt;codePool&gt;local&lt;/codePool&gt;
              &lt;depends&gt;
                  &lt;Mage_Shipping /&gt;
              &lt;/depends&gt;
          &lt;/me_Shipping&gt;
      &lt;/modules&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>Finally i have create a config.xml in: <strong>app/code/local/me/Shipping/etc/config.xml</strong>  </p>
  
  <p>I have tried many variations in this file, my latest is:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;me_Shipping&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/me_Shipping&gt;
      &lt;/modules&gt;
  
      &lt;global&gt;
          &lt;models&gt;
              &lt;shipping&gt;
                  &lt;rewrite&gt;
                      &lt;resource_carrier_tablerate&gt;me_Shipping_Model_Resource_Carrier_Tablerate&lt;/resource_carrier_tablerate&gt;
                  &lt;/rewrite&gt;
              &lt;/shipping&gt;
          &lt;/models&gt;
      &lt;/global&gt;
  &lt;/config&gt; 
  </code></pre>
  
  <p>Thanks in advance</p>