gitlab-org--gitlab-foss/app/models/concerns/project_api_compatibility.rb

11 lines
239 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Add methods used by the projects API
module ProjectAPICompatibility
extend ActiveSupport::Concern
def build_git_strategy=(value)
write_attribute(:build_allow_git_fetch, value == 'fetch')
end
end