comparison app/helpers/application_helper.rb @ 150:950849c40d42

Update all the things, including rails 5.2
author nanaya <me@nanaya.pro>
date Wed, 31 Jan 2018 15:04:03 +0900
parents 1251b3d6ec5d
children 05ce14af003a
comparison
equal deleted inserted replaced
149:8a84441a8f55 150:950849c40d42
1 module ApplicationHelper 1 module ApplicationHelper
2 include Twitter::Autolink 2 include Twitter::TwitterText::Autolink
3 3
4 def ellipsize(text, limit = 30) 4 def ellipsize(text, limit = 30)
5 if text.length <= limit 5 if text.length <= limit
6 text 6 text
7 else 7 else