title: Rails+Devise+OmniAuth: How to skip email validation for Twitter?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10226203/skip-email-validation-for-omniauth-twitter-on-devise-2-0">Skip email validation for omniauth-twitter on devise 2.0</a>  </p>
  </blockquote>
  
  
  
  <p>I am using this validation rules for email:</p>
  
  <pre><code>  validates :email,
              :presence =&gt; true, 
              :format =&gt; { :with =&gt; VALID_EMAIL_REGEX }, 
              :uniqueness =&gt; {:case_sensitive =&gt; false }
  
    before_save do |user| 
          user.email = email.downcase#
          user.slug  = user.username.parameterize
    end
  </code></pre>
  
  <p>And I tried to add:</p>
  
  <pre><code>  def email_required?
      super &amp;&amp; provider.blank?
    end
  </code></pre>
  
  <p>For skipping email validation, if a visitor want to sign up through Twitter, but I am still getting error here, it looks that the <code>email_required?</code> doesn't work.</p>
  
  <p>What am I missing?</p>
  
  <p>Thank you</p>