add richtext field to messages
This commit is contained in:
parent
82bb2df61e
commit
e0a7467678
6 changed files with 16 additions and 6 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