remove update_repository calls
This commit is contained in:
parent
5c6492662e
commit
896c3a0a9d
4 changed files with 0 additions and 24 deletions
|
@ -18,13 +18,6 @@ class ProtectedBranch < ActiveRecord::Base
|
|||
validates :name, presence: true
|
||||
validates :project, presence: true
|
||||
|
||||
after_save :update_repository
|
||||
after_destroy :update_repository
|
||||
|
||||
def update_repository
|
||||
project.update_repository
|
||||
end
|
||||
|
||||
def commit
|
||||
project.repository.commit(self.name)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue