Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-07-27 12:22:05 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-07-27 12:22:05 +0400
commit0590aa9d6073e79ba47c4fe5c34318f6889c44d8 (patch)
treec7dfcfa0fc1f4f5f76946dffdce04542bcd1ecda /app/decorators
parent67ef96ea5f721cc620f3e931f05d918c904ec74e (diff)
commit.short_id as model method. Styled inline comment form
Diffstat (limited to 'app/decorators')
-rw-r--r--app/decorators/commit_decorator.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/decorators/commit_decorator.rb b/app/decorators/commit_decorator.rb
index d9c880bee72..cc8fa97587b 100644
--- a/app/decorators/commit_decorator.rb
+++ b/app/decorators/commit_decorator.rb
@@ -1,10 +1,6 @@
class CommitDecorator < ApplicationDecorator
decorates :commit
- def short_id(length = 10)
- id.to_s[0..length]
- end
-
# Returns the commits title.
#
# Usually, the commit title is the first line of the commit message.