Files
gitlabhq/app/models/protected_branch.rb
T
2016-06-03 11:10:17 +02:00

12 lines
222 B
Ruby

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