disable confirmation in dev

This commit is contained in:
Torsten 2023-10-23 11:18:23 +03:00
parent 9e864f2e47
commit 9b3c53efee
1 changed files with 6 additions and 0 deletions

View File

@ -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