Mercurial > rsstweet
view app/helpers/application_helper.rb @ 81:fe5ea9b86091
Include replies
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 26 Jun 2016 18:20:24 +0900 |
parents | 448a368f7344 |
children | f91e2d00f03f |
line wrap: on
line source
module ApplicationHelper include Twitter::Autolink def ellipsize(text, limit = 60) if text.length <= limit text else "#{text.first(limit)}..." end end end