title: Listing the names of associated models
body: <pre><code>class Article &lt; ActiveRecord::Base
    has_many :comments
    belongs_to :category
  end
  </code></pre>
  
  <p>Is there a class method for Article with which I can retrieve a list of associations? I know by looking at the model's code that Article is associated to Comment and Category. But is there a method to get these associations programmatically?</p>