diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-06 03:35:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-06 03:35:19 +0000 |
commit | 34870add027bc5d36cb95bd2a3af87c3213dccb2 (patch) | |
tree | eee0fc3c050a8a83354931c399e5e129b3392e4b /app/views/auto_completes | |
parent | 8934e790fe43721f8b9d55745869362d521df3bb (diff) | |
download | redmine-34870add027bc5d36cb95bd2a3af87c3213dccb2.tar.gz redmine-34870add027bc5d36cb95bd2a3af87c3213dccb2.zip |
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app/views/auto_completes/issues.html.erb
git-svn-id: http://svn.redmine.org/redmine/trunk@12836 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/auto_completes')
-rw-r--r-- | app/views/auto_completes/issues.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/auto_completes/issues.html.erb b/app/views/auto_completes/issues.html.erb index e292bbaeb..35f9387a3 100644 --- a/app/views/auto_completes/issues.html.erb +++ b/app/views/auto_completes/issues.html.erb @@ -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 |