add richtext field to messages

This commit is contained in:
Philipp Rothmann 2023-02-09 12:18:18 +01:00
parent 82bb2df61e
commit e0a7467678
6 changed files with 16 additions and 6 deletions

View file

@ -22,6 +22,8 @@ class Message < ApplicationRecord
validates_presence_of :message_recipients, :subject, :body
validates_length_of :subject, :in => 1..255
has_rich_text :body
after_initialize do
@recipients_ids ||= []
@send_method ||= 'recipients'