summaryrefslogtreecommitdiff
path: root/app/observers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 11:12:15 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 11:12:15 +0200
commit39e37677f291c344e25583916a1811a052e38db6 (patch)
tree86124779ea619b6029050337465094946c2de983 /app/observers
parent081c272b85d9344ff3a0b548f8f5eabc60e9a58d (diff)
downloadgitlab-ce-39e37677f291c344e25583916a1811a052e38db6.tar.gz
add remove keys from gitlab-shell by id
Diffstat (limited to 'app/observers')
-rw-r--r--app/observers/key_observer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/observers/key_observer.rb b/app/observers/key_observer.rb
index ad371d304c3..4146216d82f 100644
--- a/app/observers/key_observer.rb
+++ b/app/observers/key_observer.rb
@@ -4,7 +4,7 @@ class KeyObserver < ActiveRecord::Observer
def after_save(key)
GitoliteWorker.perform_async(
:add_key,
- key.owner_name,
+ key.shell_id,
key.key
)
end
@@ -12,7 +12,7 @@ class KeyObserver < ActiveRecord::Observer
def after_destroy(key)
GitoliteWorker.perform_async(
:remove_key,
- key.owner_name,
+ key.shell_id,
key.key,
)
end