disable confirmation in dev
This commit is contained in:
@ -4,6 +4,12 @@ class Member < ApplicationRecord
|
|||||||
devise :database_authenticatable, :registerable,:confirmable,
|
devise :database_authenticatable, :registerable,:confirmable,
|
||||||
:recoverable, :rememberable, :validatable
|
:recoverable, :rememberable, :validatable
|
||||||
|
|
||||||
|
after_create :skip_conf!
|
||||||
|
|
||||||
|
def skip_conf!
|
||||||
|
self.confirm! if Rails.env.development?
|
||||||
|
end
|
||||||
|
|
||||||
mount_uploader :picture, PictureUploader
|
mount_uploader :picture, PictureUploader
|
||||||
|
|
||||||
has_many :entities
|
has_many :entities
|
||||||
|
Reference in New Issue
Block a user