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
|