]> 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:35:19 +0000 (03:35 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 03:35:19 +0000 (03:35 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12836 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/auto_completes/issues.html.erb

index e292bbaebb18ad7908a2e9aa9b022b8cd37ad53a..35f9387a33abe2e0694f1a08d45919b6a46c60aa 100644 (file)
@@ -1,6 +1,6 @@
 <%= raw @issues.map {|issue| {
       'id' => issue.id,
-      'label' => "#{issue.tracker} ##{issue.id}: #{truncate issue.subject.to_s, :length => 60}",
+      'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(60)}",
       'value' => issue.id
       }
     }.to_json