summaryrefslogtreecommitdiff
path: root/app/models/readme_blob.rb
blob: 695b4e3ffe33f3d774c3e7ff9d9c3bbee2b6f0f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class ReadmeBlob < SimpleDelegator
  include BlobActiveModel

  attr_reader :repository

  def initialize(blob, repository)
    @repository = repository

    super(blob)
  end

  def rendered_markup
    repository.rendered_readme
  end
end