gitlab-org--gitlab-foss/app/models/blob_viewer/server_side.rb
2017-05-10 20:07:04 -05:00

17 lines
326 B
Ruby

module BlobViewer
module ServerSide
extend ActiveSupport::Concern
included do
self.client_side = false
self.max_size = 2.megabytes
self.absolute_max_size = 5.megabytes
end
def prepare!
if blob.project
blob.load_all_data!(blob.project.repository)
end
end
end
end