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

51 lines
528 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
2019-02-15 15:39:39 +05:30
def binary_in_repo?
2017-08-17 22:00:37 +05:30
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