summaryrefslogtreecommitdiff
path: root/app/helpers/commits_helper.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-24 22:38:03 +0300
committergitlabhq <m@gitlabhq.com>2011-10-24 22:38:03 +0300
commit5baa5fad0a1c6e2b8790f07f62c088fd505406d9 (patch)
tree80e5fe5e9de9c31089543a4970aa3bed625643f0 /app/helpers/commits_helper.rb
parent61e6751ea676d23f5ef88de6d0bf9c273f785516 (diff)
downloadgitlab-ce-5baa5fad0a1c6e2b8790f07f62c088fd505406d9.tar.gz
Issue #149
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index b79e5718194..f1b546684f0 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -21,13 +21,4 @@ module CommitsHelper
link_to "More", project_commits_path(@project, :offset => offset.to_i + limit.to_i, :limit => limit),
:remote => true, :class => "lite_button vm", :style => "text-align:center; width:930px; ", :id => "more-commits-link"
end
-
- # Cause some errors with trucate & encoding use this method
- def truncate_commit_message(commit, size = 60)
- message = commit.message
- message.length > size ? (message[0..(size - 1)] + "...") : message
- # if special characters occurs
- rescue
- commit.message
- end
end