diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-19 22:00:41 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-19 22:00:41 +0400 |
commit | a3cdaeef6654edac27a07fac8189c581977827e5 (patch) | |
tree | 4b73e8662e5e03bbe19d2cf3ebb7db4b50f5ec55 /app/observers | |
parent | 52d3fa191f570ddfad4549e848f45d90327e3df6 (diff) |
refactor emails a bit. Add email on ssh key creation
Diffstat (limited to 'app/observers')
-rw-r--r-- | app/observers/key_observer.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/observers/key_observer.rb b/app/observers/key_observer.rb index 664cbdfd234..9d02cbc16f7 100644 --- a/app/observers/key_observer.rb +++ b/app/observers/key_observer.rb @@ -7,6 +7,9 @@ class KeyObserver < ActiveRecord::Observer key.shell_id, key.key ) + + # Notify about ssh key being added + Notify.delay.new_ssh_key_email(key.id) if key.user end def after_destroy(key) |