summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 03:34:45 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 03:34:45 +0000
commit16211f9a5bf6b4fa6c067bd4e447b6e466013ab6 (patch)
treef03a633753dfd76a6bc00f326997679700f184ab /app/helpers/application_helper.rb
parentae087d7578564a2b2ed40da7e38d840c39751312 (diff)
downloadredmine-16211f9a5bf6b4fa6c067bd4e447b6e466013ab6.tar.gz
redmine-16211f9a5bf6b4fa6c067bd4e447b6e466013ab6.zip
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at ApplicationHelper#link_to_message
git-svn-id: http://svn.redmine.org/redmine/trunk@12834 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8f6442d28..9c2a622ac 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -118,7 +118,7 @@ module ApplicationHelper
# Generates a link to a message
def link_to_message(message, options={}, html_options = nil)
link_to(
- truncate(message.subject, :length => 60),
+ message.subject.truncate(60),
board_message_path(message.board_id, message.parent_id || message.id, {
:r => (message.parent_id && message.id),
:anchor => (message.parent_id ? "message-#{message.id}" : nil)