This commit is contained in:
parent
e3179dfd6e
commit
6d9cf8aad2
|
@ -26,7 +26,7 @@ class FeedbackMessageHistory < ApplicationRecord
|
|||
private
|
||||
|
||||
def send_meessage_email
|
||||
unless UserMailer.update_email(mail, verification_code).deliver_now
|
||||
unless UserMailer.feedback_email(user&.mail, title, content).deliver_now
|
||||
errors[:title] << '邮件发送失败!'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -174,7 +174,7 @@ class User < Owner
|
|||
has_many :system_notification_histories
|
||||
has_many :system_notifications, through: :system_notification_histories
|
||||
has_one :trace_user, dependent: :destroy
|
||||
|
||||
has_many :feedbacks, dependent: :destroy
|
||||
# Groups and active users
|
||||
scope :active, lambda { where(status: STATUS_ACTIVE) }
|
||||
scope :like, lambda { |keywords|
|
||||
|
|
Loading…
Reference in New Issue