summaryrefslogtreecommitdiff
path: root/app/models/blob_viewer/changelog.rb
blob: 0464ae27f71069dda212e3ac68966a43c3b1cacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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