Commit 13bd4b02 authored by Yorick Peterse's avatar Yorick Peterse

Split Project#reset_cache_and_import_attrs up

In EE we don't want to remove import data for mirrors. By moving this
logic to a separate method we can simply re-define the method in EE
using "prepend" and call "super" whenever necessary.
parent 71103985
......@@ -478,7 +478,11 @@ class Project < ActiveRecord::Base
ProjectCacheWorker.perform_async(self.id)
end
self.import_data&.destroy
remove_import_data
end
def remove_import_data
import_data&.destroy
end
def import_url=(value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment