debian-mirror-gitlab/app/models/readme_blob.rb

18 lines
271 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
class ReadmeBlob < SimpleDelegator
2020-01-01 13:55:28 +05:30
include BlobActiveModel
2017-09-10 17:25:29 +05:30
attr_reader :repository
def initialize(blob, repository)
@repository = repository
super(blob)
end
def rendered_markup
repository.rendered_readme
end
end