Welcome to mirror list, hosted at ThFree Co, Russian Federation.

protected_branch.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 33cf046fa75c47134518a7f05bbdad9ed0b083c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
class ProtectedBranch < ActiveRecord::Base
  include Gitlab::ShellAdapter

  belongs_to :project
  validates :name, presence: true
  validates :project, presence: true

  def commit
    project.commit(self.name)
  end
end