title: Rails ActiveRecord - get all validations from a model
body: <p>Is there a way to find all defined validations for a model. E.g :</p>
  
  <pre><code>class Temp &lt; ActiveRecord::Base
  
       validate_uniqueness_of :name
       validate :some_method
  
       def some_method
          ...
       end
   end
  </code></pre>
  
  <p>When i try :</p>
  
  <pre><code>Temp.validators
  </code></pre>
  
  <p>It only finds the uniqueness validation, but not the other one.</p>