feat(messages): use trix editor in messages
This commit is contained in:
parent
c4a53caf52
commit
ef6d6aa368
14 changed files with 83 additions and 5 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue