9 lines
163 B
Ruby
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
|