mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
User email confirmation is now optional
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
class User < ApplicationRecord
|
||||
devise :database_authenticatable, :registerable,
|
||||
:recoverable, :rememberable, :validatable,
|
||||
:confirmable
|
||||
:recoverable, :rememberable, :validatable
|
||||
|
||||
self.send(:devise, :confirmable) if Rails.application.email_confirmation?
|
||||
|
||||
has_many :comments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user