Module: Discuss::ApplicationHelper
- Defined in:
- app/helpers/discuss/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#markdown(text) ⇒ Object
7 8 9 |
# File 'app/helpers/discuss/application_helper.rb', line 7 def markdown(text) Redcarpet::Markdown.new(text).to_html.html_safe end |
#message_person(mailbox_name, message) ⇒ Object
3 4 5 |
# File 'app/helpers/discuss/application_helper.rb', line 3 def (mailbox_name, ) mailbox_name == 'inbox' ? .sender : .recipient_list.join(', ') end |