title: How to access the model name in a concern (or in a module)?
body: <p>I have the following concern in my rails app:</p>
  
  <pre><code>module Authenticable
    extend ActiveSupport::Concern
  
    included do
      # ...
    end
  
    module ClassMethods
      def quoted_table_name
        self.class.name.downcase.pluralize # returns "classes"
      end
    end
  end
  </code></pre>
  
  <p>If I have a user class:</p>
  
  <pre><code>class User
    include Authenticable
  end
  </code></pre>
  
  <p>then I could like <code>User.quoted_table_name</code> to return <code>"users"</code>. Currently, <code>User.quoted_table_name</code> returns <code>"classes"</code>. I also tried to the following, but nothing changed.</p>
  
  <pre><code>def quoted_table_name
    Proc.new { self.class.name.downcase.pluralize }.call
  end
  </code></pre>