diff --git a/app/models/member.rb b/app/models/member.rb index 8ffff6d..e14c9ee 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -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