Revert "FIX: Partial reply key search in email sent logs."

This reverts commit e9b2018bc8.
This commit is contained in:
Guo Xiang Tan
2019-01-10 09:56:03 +08:00
parent 798e98a7cc
commit d10694150e
7 changed files with 27 additions and 11 deletions

View File

@@ -73,6 +73,10 @@ class EmailLog < ActiveRecord::Base
.first
end
def bounce_key
super&.delete('-')
end
end
# == Schema Information

View File

@@ -8,8 +8,12 @@ class PostReplyKey < ActiveRecord::Base
validates :user_id, presence: true
validates :reply_key, presence: true
def reply_key
super&.delete('-')
end
def self.generate_reply_key
SecureRandom.uuid
SecureRandom.hex(16)
end
end