Module: Banzai::CommitRenderer

Defined in:
lib/banzai/commit_renderer.rb

Constant Summary collapse

ATTRIBUTES =
[:description, :title, :full_title].freeze

Class Method Summary collapse

Class Method Details

.render(commits, project, user = nil) ⇒ Object


7
8
9
10
11
# File 'lib/banzai/commit_renderer.rb', line 7

def self.render(commits, project, user = nil)
  obj_renderer = ObjectRenderer.new(user: user, default_project: project)

  ATTRIBUTES.each { |attr| obj_renderer.render(commits, attr) }
end