Use NotificationService for observers pt1

This commit is contained in:
Dmitriy Zaporozhets 2013-03-26 09:47:40 +02:00
parent f7e630c452
commit 448152ab94
3 changed files with 13 additions and 17 deletions

View file

@ -9,7 +9,7 @@ class KeyObserver < ActiveRecord::Observer
)
# Notify about ssh key being added
Notify.delay.new_ssh_key_email(key.id) if key.user
NotificationService.new.new_key(key)
end
def after_destroy(key)