]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 03:36:24 +0000 (03:36 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 03:36:24 +0000 (03:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12840 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/revision.html.erb

index a5fe87246296827736d906ba7d1741b214630562..d945972f5df6badd160d7fd0c769ac2ba1ad31ef 100644 (file)
@@ -96,6 +96,6 @@
 
 <%
   title = "#{l(:label_revision)} #{format_revision(@changeset)}"
-  title << " - #{truncate(@changeset.comments, :length => 80)}"
+  title << " - #{@changeset.comments.truncate(80)}"
   html_title(title)
  -%>