subject only email message

This commit is contained in:
Pete Matsyburka committed 2026-09-03 18:59:33 +03:00
1 parent f9669b0e16
commit e316d2006f
4 files changed
+11 -10

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ class EmailMessage < ApplicationRecord
attribute :uuid, :string, default: -> { SecureRandom.uuid }
normalizes :body, with: ->(value) { value.to_s }, apply_to_nil: true
before_validation :set_sha1, on: :create
def normalized_body