debian-mirror-gitlab/app/models/protected_branch.rb
2016-06-02 11:05:42 +05:30

11 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