gitlab-org--gitlab-foss/app/models/blob_viewer/changelog.rb
2018-08-03 01:44:16 -07:00

18 lines
317 B
Ruby

# frozen_string_literal: true
module BlobViewer
class Changelog < Base
include Auxiliary
include Static
self.partial_name = 'changelog'
self.file_types = %i(changelog)
self.binary = false
def render_error
return if project.repository.tag_count > 0
:no_tags
end
end
end