Fix mail delivery error in production (#132)

Fix issue #62
This commit is contained in:
Riccardo Graziosi
2022-07-16 12:36:33 +02:00
committed by GitHub
parent 1a94a0e040
commit bdc4004e4a
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ class User < ApplicationRecord
after_initialize :set_default_role, 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 }

View File

@@ -64,7 +64,7 @@ Rails.application.configure do
# 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.
# 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
# the I18n.default_locale when a translation cannot be found).