more refactoring using models/concerns

This commit is contained in:
Dmitriy Zaporozhets 2013-01-03 09:06:07 +02:00
parent 40a956eb68
commit da03a5c7e2
10 changed files with 58 additions and 68 deletions

View file

@ -10,7 +10,7 @@
#
class ProtectedBranch < ActiveRecord::Base
include GitHost
include Gitolited
attr_accessible :name
@ -22,7 +22,7 @@ class ProtectedBranch < ActiveRecord::Base
after_destroy :update_repository
def update_repository
git_host.update_repository(project)
gitolite.update_repository(project)
end
def commit