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