title: Rails put validation in a module mixin?
body: <p>Some validations are repetitive in my models:</p>
  
  <pre><code>validates :name, :length =&gt; { :minimum =&gt; 2 }, :presence =&gt; true, :uniqueness =&gt; true
  validates :name_seo, :length =&gt; { :minimum =&gt; 2 }, :presence =&gt; true, :uniqueness =&gt; true
  </code></pre>
  
  <p>How would I put that in a mixin? I get this error if I just put 'em in a mixin</p>
  
  <pre><code>app/models/validations.rb:5: undefined method `validates' for Validations:Module (NoMethodError)
  </code></pre>