title: Devise: Is it possible to NOT send a confirmation email in specific cases ?
body: <p>Actually I am using devise for login and registration and its working fine, it send a confirmation email which is really good. But I need to send confirmation email in specific cases. I am passing user type in URL and on behalf of that I want to set mail. I have two type of users, one will be confirm their account their self reset of the users can not confirm their account only admin can approve their accounts. I have override the create method </p>
  
  <pre><code>def create
      super
      if params[:type]=='xyz
          @user.skip_confirmation_notification!
      end
  end
  </code></pre>
  
  <p>but it sends mail in both cases. Please tell where am wrong.</p>