diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-07-27 12:22:05 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-07-27 12:22:05 +0400 |
commit | 0590aa9d6073e79ba47c4fe5c34318f6889c44d8 (patch) | |
tree | c7dfcfa0fc1f4f5f76946dffdce04542bcd1ecda /app/decorators | |
parent | 67ef96ea5f721cc620f3e931f05d918c904ec74e (diff) |
commit.short_id as model method. Styled inline comment form
Diffstat (limited to 'app/decorators')
-rw-r--r-- | app/decorators/commit_decorator.rb | 4 |
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. |