Cleaning and refactoring

This commit is contained in:
Dmitriy Zaporozhets 2012-03-06 00:26:40 +02:00
parent 74f8bc7298
commit cb59aade4e
12 changed files with 135 additions and 232 deletions

View file

@ -7,9 +7,7 @@ class ProtectedBranch < ActiveRecord::Base
after_destroy :update_repository
def update_repository
Gitlabhq::GitHost.system.new.configure do |c|
c.update_project(project.path, project)
end
Gitlabhq::GitHost.system.update_project(project.path, project)
end
def commit