From 3abd977822247581465ff6d6df52d2c08e8da508 Mon Sep 17 00:00:00 2001 From: gitlabhq Date: Thu, 3 Nov 2011 06:56:26 -0400 Subject: fixed error with ascii error for dashboard --- lib/commit_ext.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/commit_ext.rb') 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 -- cgit v1.2.1