feat(messages): use trix editor in messages

This commit is contained in:
Philipp Rothmann 2023-08-04 10:55:31 +02:00 committed by Philipp Rothmann
parent c4a53caf52
commit ef6d6aa368
14 changed files with 83 additions and 5 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'