Skip to content
Snippets Groups Projects
Commit 2a9ddef5 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

identifier can depend on website

parent 88b7cfcf
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ module WithGit
def destroy_from_git
websites_with_fallback.each do |website|
identifiers.each do |identifier|
identifiers(website: website).each do |identifier|
Communication::Website::GitFile.sync website, self, identifier, destroy: true
dependencies = send "git_destroy_dependencies_#{identifier}"
dependencies.each do |object|
......@@ -52,7 +52,7 @@ module WithGit
def sync_with_git
websites_with_fallback.each do |website|
identifiers.each do |identifier|
identifiers(website: website).each do |identifier|
Communication::Website::GitFile.sync website, self, identifier
dependencies = send "git_dependencies_#{identifier}"
dependencies.each do |object|
......@@ -79,7 +79,7 @@ module WithGit
end
# Overridden for multiple files generation
def identifiers
def identifiers(website: nil)
[:static]
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