Browse Source

修复

pull/313/head
yystopf 3 years ago
parent
commit
6d9cf8aad2
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/models/feedback_message_history.rb
  2. +1
    -1
      app/models/user.rb

+ 1
- 1
app/models/feedback_message_history.rb View File

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


+ 1
- 1
app/models/user.rb View File

@@ -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…
Cancel
Save