Sha256: 069f936bf5026b36b0f8fb84241cf8c8b640710a70c20e17bd08e0d7e78340f8
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
module MongoidForums module ApplicationHelper include FormattingHelper # processes text with installed markup formatter def mongoid_forums_format(text, *options) text = text.gsub(URI::regexp){ |url| url = Addressable::URI.parse(url).normalize "<a href='#{url}'>#{url.display_uri}</a>" }.html_safe as_formatted_html(text) end def mongoid_forums_quote(text) as_quoted_text(text) end 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ack-mongoid-forums-1.0.6.1 | app/helpers/mongoid_forums/application_helper.rb |
ack-mongoid-forums-1.0.6 | app/helpers/mongoid_forums/application_helper.rb |