summaryrefslogtreecommitdiff
path: root/app/models/concerns/project_api_compatibility.rb
blob: 9a0202c211c691a5c6b45772c87ace228954467a (plain)
1
2
3
4
5
6
7
8
9
10
# 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