gitlab-org--gitlab-foss/app/models/project_observer.rb
2012-03-04 15:35:15 +02:00

9 lines
180 B
Ruby

class ProjectObserver < ActiveRecord::Observer
def after_save(project)
project.update_repository
end
def after_destroy(project)
project.destroy_repository
end
end