From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 03:36:08 +0000 (+0000) Subject: Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app... X-Git-Tag: 2.5.0~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b412f0cc0086a63b842bb8cc2e019b02da143d34;p=redmine.git Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app/views/repositories/_dir_list_content.html.erb git-svn-id: http://svn.redmine.org/redmine/trunk@12839 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/_dir_list_content.html.erb b/app/views/repositories/_dir_list_content.html.erb index dcee3dfc1..21f205ad7 100644 --- a/app/views/repositories/_dir_list_content.html.erb +++ b/app/views/repositories/_dir_list_content.html.erb @@ -25,7 +25,7 @@ <%= link_to_revision(entry.changeset, @repository) if entry.changeset %> <%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %> <%= entry.author %> -<%= truncate(entry.changeset.comments, :length => 50) if entry.changeset %> +<%= entry.changeset.comments.truncate(50) if entry.changeset %> <% end %> <% end %>