summaryrefslogtreecommitdiff
path: root/lib/commit_ext.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-11-03 06:56:26 -0400
committergitlabhq <m@gitlabhq.com>2011-11-03 06:56:26 -0400
commit3abd977822247581465ff6d6df52d2c08e8da508 (patch)
treece6e1c2a38bad61889f847b487d3a27675d47040 /lib/commit_ext.rb
parent020e1a8eee37e6a0acba9833f8abb5dfc80eb248 (diff)
downloadgitlab-ce-3abd977822247581465ff6d6df52d2c08e8da508.tar.gz
fixed error with ascii error for dashboard
Diffstat (limited to 'lib/commit_ext.rb')
-rw-r--r--lib/commit_ext.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/commit_ext.rb b/lib/commit_ext.rb
index 32706acb617..db6503557ae 100644
--- a/lib/commit_ext.rb
+++ b/lib/commit_ext.rb
@@ -12,4 +12,12 @@ module CommitExt
def created_at
committed_date
end
+
+ def author_email
+ author.email.force_encoding(Encoding::UTF_8)
+ end
+
+ def author_name
+ author.name.force_encoding(Encoding::UTF_8)
+ end
end