summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-21 13:08:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-21 13:08:11 +0000
commitccda115f15b0eb4c648754dcf1023b4000adc744 (patch)
tree8ffc2f785da0d0ff52f1dd3c87f553dba07a3863
parent129dbc316d2809174232b1e43c007d5a611a809f (diff)
downloadredmine-ccda115f15b0eb4c648754dcf1023b4000adc744.tar.gz
redmine-ccda115f15b0eb4c648754dcf1023b4000adc744.zip
scm: view: add #to_s to changeset.author (#5501)
On Ruby 1.8.6, following error raises. undefined method `mb_chars' for #<ActiveRecord::Associations::BelongsToAssociation:0x7f86950f3e58> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7639 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/repositories/_revisions.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb
index 4f5dd14a4..a78e00fda 100644
--- a/app/views/repositories/_revisions.html.erb
+++ b/app/views/repositories/_revisions.html.erb
@@ -17,7 +17,7 @@
<td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td>
<td class="checkbox"><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
<td class="committed_on"><%= format_time(changeset.committed_on) %></td>
-<td class="author"><%= h truncate(changeset.author,:length => 30) %></td>
+<td class="author"><%= h truncate(changeset.author.to_s, :length => 30) %></td>
<td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
</tr>
<% line_num += 1 %>