Module: MongoidForums::ApplicationHelper

Includes:
FormattingHelper
Defined in:
app/helpers/mongoid_forums/application_helper.rb

Instance Method Summary collapse

Methods included from FormattingHelper

#as_formatted_html, #as_quoted_text, #as_sanitized_text, #emojify

Instance Method Details

#mongoid_forums_format(text, *options) ⇒ Object

processes text with installed markup formatter



5
6
7
# File 'app/helpers/mongoid_forums/application_helper.rb', line 5

def mongoid_forums_format(text, *options)
  emojify(as_formatted_html(text))
end

#mongoid_forums_markdown(text, *options) ⇒ Object



13
14
15
16
17
# File 'app/helpers/mongoid_forums/application_helper.rb', line 13

def mongoid_forums_markdown(text, *options)
  #TODO: delete deprecated method
  Rails.logger.warn("DEPRECATION: mongoid_forums_markdown is replaced by mongoid_forums_format(), and will be removed")
  forem_format(text)
end

#mongoid_forums_quote(text) ⇒ Object



9
10
11
# File 'app/helpers/mongoid_forums/application_helper.rb', line 9

def mongoid_forums_quote(text)
  as_quoted_text(text)
end