Sha256: f9ec82a283555b21088dcfbeaa7179573a2cd641f81068f9be485411f73310cf
Contents?: true
Size: 245 Bytes
Versions: 23
Compression:
Stored size: 245 Bytes
Contents
module PostsHelper def try_highlight(text, options = {}) options[:length] ||= 100 e = excerpt(text, params[:q].strip, radius: options[:length]) || truncate(text, length: options[:length]) highlight(e, params[:q]) end end
Version data entries
23 entries across 23 versions & 2 rubygems