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

app/helpers/application_helper.rb

index e4e92971743dcf32fdef9f4c6753db642821c787..8f6442d2878db1bfa32037bd36de98ba150b8cad 100644 (file)
@@ -781,7 +781,7 @@ module ApplicationHelper
                              {:only_path => only_path, :controller => 'issues',
                               :action => 'show', :id => oid, :anchor => anchor},
                              :class => issue.css_classes,
-                             :title => "#{truncate(issue.subject, :length => 100)} (#{issue.status.name})")
+                             :title => "#{issue.subject.truncate(100)} (#{issue.status.name})")
             end
           when 'document'
             if document = Document.visible.find_by_id(oid)