diff options
| author | randx <dmitriy.zaporozhets@gmail.com> | 2012-05-26 13:37:49 +0300 |
|---|---|---|
| committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-05-26 13:37:49 +0300 |
| commit | 3272620f724737f4dbb5e8c02f1610946435cd29 (patch) | |
| tree | ae9fb3daccdf6b008ccb9c31d435e9548113c6ee /app/models/key.rb | |
| parent | 8ceb94081ac516ccaed43f0f4841725a4f9fe2db (diff) | |
| download | gitlab-ce-3272620f724737f4dbb5e8c02f1610946435cd29.tar.gz | |
lib/ refactoring. Module Gitlabhq renamed to Gitlab
Diffstat (limited to 'app/models/key.rb')
| -rw-r--r-- | app/models/key.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index 1d7aae359f4..8fe8716cc63 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -38,14 +38,14 @@ class Key < ActiveRecord::Base end def update_repository - Gitlabhq::GitHost.system.new.configure do |c| + Gitlab::GitHost.system.new.configure do |c| c.update_keys(identifier, key) c.update_projects(projects) end end def repository_delete_key - Gitlabhq::GitHost.system.new.configure do |c| + Gitlab::GitHost.system.new.configure do |c| #delete key file is there is no identically deploy keys if !is_deploy_key || Key.where(:identifier => identifier).count() == 0 c.delete_key(identifier) |
