Sha256: efd3f3d2011c6dba3c307e4eec296ba84105ceddc838990c21faae3e250694d0
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'thredded/at_users' module HTML class Pipeline class AtMentionFilter < Filter def initialize(text, context = nil, result = nil) super text, context, result @text = text.to_s.gsub "\r", '' @post = context[:post] end def call html = Thredded::AtUsers.render(@text, @post.messageboard) html.rstrip! html end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.0.12 | lib/html/pipeline/at_mention_filter.rb |