Before save copy body in rich_body
This commit is contained in:
parent
d13b7f953f
commit
10d3ba10f2
2 changed files with 11 additions and 0 deletions
|
@ -11,8 +11,13 @@ module MailTemplateConcern
|
|||
replace_tags(body, dossier)
|
||||
end
|
||||
|
||||
def update_rich_body
|
||||
self.rich_body = self.body
|
||||
end
|
||||
|
||||
included do
|
||||
has_rich_text :rich_body
|
||||
before_save :update_rich_body
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue