1 2 3 4 5 6 7 8 9 10 11 12 13 14
module BlobViewer class Readme < Base include Auxiliary include Static self.partial_name = 'readme' self.file_types = %i(readme) self.binary = false def visible_to?(current_user) can?(current_user, :read_wiki, project) end end end