diff app/helpers/application_helper.rb @ 172:df4be896ab8b

Improved escaping and truncating
author nanaya <me@nanaya.pro>
date Wed, 08 Aug 2018 20:37:29 +0900
parents 90db232f39e7
children 52252ae4b580
line wrap: on
line diff
--- a/app/helpers/application_helper.rb	Wed Aug 08 20:19:51 2018 +0900
+++ b/app/helpers/application_helper.rb	Wed Aug 08 20:37:29 2018 +0900
@@ -1,14 +1,6 @@
 module ApplicationHelper
   include Twitter::TwitterText::Autolink
 
-  def ellipsize(text, limit = 30)
-    if text.length <= limit
-      text
-    else
-      "#{text.first(limit)}..."
-    end
-  end
-
   def atom_id(id)
     "tag:#{request.host},2005:#{id}"
   end