Skip to content
Snippets Groups Projects
Commit d1cc6c6f authored by pabois's avatar pabois
Browse files

dependencies sync

parent b83a298f
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,8 @@ module WithDependenciesSynchronization
before_save :compute_dependencies_before_save
after_save :cleanup_websites if :dependencies_missing_after_save?
after_destroy :cleanup_websites
end
protected
def compute_dependencies_before_save
......@@ -24,9 +22,11 @@ module WithDependenciesSynchronization
end
def cleanup_websites
# TODO
if is_direct_object?
website.destroy_obsolete_git_files
else
websites.each(&:destroy_obsolete_git_files)
end
end
end
\ No newline at end of file
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment