gitlabhq/app/models/key_observer.rb

10 lines
163 B
Ruby
Raw Normal View History

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