diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-03 06:56:26 -0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-03 06:56:26 -0400 |
commit | 3abd977822247581465ff6d6df52d2c08e8da508 (patch) | |
tree | ce6e1c2a38bad61889f847b487d3a27675d47040 /lib/commit_ext.rb | |
parent | 020e1a8eee37e6a0acba9833f8abb5dfc80eb248 (diff) | |
download | gitlab-ce-3abd977822247581465ff6d6df52d2c08e8da508.tar.gz |
fixed error with ascii error for dashboard
Diffstat (limited to 'lib/commit_ext.rb')
-rw-r--r-- | lib/commit_ext.rb | 8 |
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 |