Class: API::Entities::CommitWithLink

Inherits:
Commit
  • Object
show all
Includes:
MarkupHelper, RequestAwareEntity
Defined in:
lib/api/entities/commit_with_link.rb

Direct Known Subclasses

CommitEntity

Instance Method Summary collapse

Methods included from RequestAwareEntity

#request

Methods included from MarkupHelper

#asciidoc?, #cross_project_reference, #first_line_in_markdown, #gitlab_markdown?, #link_to_html, #link_to_markdown, #link_to_markdown_field, #markdown, #markdown_field, #markup, #markup?, #markup_unsafe, #plain?, #render_wiki_content

Instance Method Details

#render(*args) ⇒ Object


54
55
56
57
58
# File 'lib/api/entities/commit_with_link.rb', line 54

def render(*args)
  return unless request.respond_to?(:render) && request.render.respond_to?(:call)

  request.render.call(*args)
end