more refactoring using models/concerns
This commit is contained in:
parent
40a956eb68
commit
da03a5c7e2
10 changed files with 58 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue