gitlabhq/app/models/project_observer.rb

10 lines
180 B
Ruby
Raw Normal View History

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