mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
committed by
GitHub
parent
1a94a0e040
commit
bdc4004e4a
@@ -12,7 +12,8 @@ class User < ApplicationRecord
|
|||||||
|
|
||||||
after_initialize :set_default_role, if: :new_record?
|
after_initialize :set_default_role, if: :new_record?
|
||||||
after_initialize :set_default_status, if: :new_record?
|
after_initialize :set_default_status, if: :new_record?
|
||||||
after_initialize :skip_confirmation, if: :new_record?
|
|
||||||
|
before_save :skip_confirmation
|
||||||
|
|
||||||
validates :full_name, presence: true, length: { in: 2..32 }
|
validates :full_name, presence: true, length: { in: 2..32 }
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Rails.application.configure do
|
|||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
# Ignore bad email addresses and do not raise email delivery errors.
|
||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||||
# config.action_mailer.raise_delivery_errors = false
|
config.action_mailer.raise_delivery_errors = false
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
# the I18n.default_locale when a translation cannot be found).
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
|
|||||||
Reference in New Issue
Block a user