gitlab-org--gitlab-foss/app/observers/key_observer.rb

9 lines
163 B
Ruby

class KeyObserver < ActiveRecord::Observer
def after_save(key)
key.update_repository
end
def after_destroy(key)
key.repository_delete_key
end
end