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.
This commit is contained in:
parent
71103985f9
commit
13bd4b028a
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue