From 323c9e8e71fb608060f8499eed4df5b7d110205c Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 16 Dec 2010 18:11:45 -0300 Subject: [PATCH] Short name is too short! --- app/models/profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index 820a673..288dfcd 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -618,7 +618,7 @@ private :generate_url, :url_options end include ActionView::Helpers::TextHelper - def short_name(chars = 15) + def short_name(chars = 40) if self[:nickname].blank? truncate self.name, chars, '...' else -- libgit2 0.21.2