Class: Message
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Message
- Includes:
- ThinkFeelDoEngine::Addressable
- Defined in:
- app/models/message.rb
Overview
A message sent from a Participant or User to a Participant or User.
Instance Method Summary collapse
Methods included from ThinkFeelDoEngine::Addressable
Instance Method Details
#render_body ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/message.rb', line 20 def render_body rendered = "" unless body.nil? markdown = Redcarpet::Markdown.new( Redcarpet::Render::HTML, space_after_headers: true ) rendered += markdown.render(body) end rendered.html_safe end |