diff options
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index c993f3ed507..49c36ad9d3f 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -39,12 +39,7 @@ class Commit def banzai_render_context(field) pipeline = field == :description ? :commit_description : :single_line context = { pipeline: pipeline, project: self.project } - - # The author is only needed when rendering the description - if field == :description - author = self.author - context[:author] = author if author - end + context[:author] = self.author if self.author context end |