title: NoMethodError (undefined method `validate' for true:TrueClass)
body: <p>This specific line in my model</p>
  
  <pre><code>validates :password, 
       length: { minimum: 8 }, 
       allow_nil: true, 
       on: :create, 
       unless: (:uid.present? &amp;&amp; :provider.present?)
  </code></pre>
  
  <p>is causing </p>
  
  <pre><code>NoMethodError (undefined method `validate' for true:TrueClass)
  </code></pre>
  
  <p>and no errors during update_user.</p>
  
  <p><strong>Is there any syntax mistake?</strong> maybe something like the arguments are not sent properly or is it something else?</p>