diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 09:06:07 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 09:06:07 +0200 |
commit | da03a5c7e25601c2bce8375dbbe1cffc58db7bbf (patch) | |
tree | f64f9a9d4c396839b99a263a4c46014db4fa7f4d /app/models/protected_branch.rb | |
parent | 40a956eb6825f2bbca06e9f24c1fb24dc71a1ecd (diff) | |
download | gitlab-ce-da03a5c7e25601c2bce8375dbbe1cffc58db7bbf.tar.gz |
more refactoring using models/concerns
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r-- | app/models/protected_branch.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb index c54aa3ce9a2..f405a7bf7bc 100644 --- a/app/models/protected_branch.rb +++ b/app/models/protected_branch.rb @@ -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 |