title: Rails table_name_prefix missing
body: <p>I have got the following dir structure</p>
  
  <pre><code>models/foo/setting.rb
  models/foo.rb
  </code></pre>
  
  <p>foo.rb content</p>
  
  <pre><code> module Foo
    def self.table_name_prefix
      'foo_'
    end
   end
  </code></pre>
  
  <p>and setting.rb content</p>
  
  <pre><code>class Foo::Setting &lt; ActiveRecord::Base
  end
  </code></pre>
  
  <p>As soon as I am calling <code>Foo::Setting.find…</code> I am getting an error <code>SQLException: no such table: settings</code> which is indeed correct because the table is named <code>foo_settings</code> so rails seems to ignore the table prefix specified for the module Foo.</p>
  
  <p>What can I do so that rails considers the prefix?</p>