debian-mirror-gitlab/app/models/concerns/blob_like.rb

51 lines
520 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module BlobLike
extend ActiveSupport::Concern
2018-12-13 13:39:08 +05:30
include Gitlab::BlobHelper
2017-08-17 22:00:37 +05:30
def id
raise NotImplementedError
end
def name
raise NotImplementedError
end
def path
raise NotImplementedError
end
def size
0
end
def data
nil
end
def mode
nil
end
def binary?
false
end
def load_all_data!(repository)
# No-op
end
def truncated?
false
end
def external_storage
nil
end
def external_size
nil
end
end