gitlabhq/app/models/key_observer.rb
2012-03-04 15:35:15 +02:00

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