BigW Consortium Gitlab

Commit dd7434e3 by Tiago Botelho

Adds CommitDescriptionRenderer

parent b97f9629
module RendersCommitDescription
def prepare_commit_descriptions_for_rendering(commit_descriptions)
Banzai::CommitDescriptionRenderer.render(commit_descriptions, @project, current_user)
commit_descriptions
end
end
module Banzai
module CommitDescriptionRenderer
def self.render(commit_descriptions, project, user = nil)
ObjectRenderer.new(project, user).render(commit_descriptions, :commit_description)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment