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

block dependencies

parent 14d20aa3
No related branches found
No related tags found
No related merge requests found
......@@ -78,11 +78,17 @@ class Communication::Website::Page < ApplicationRecord
end
def git_dependencies(website)
[self] + descendents + active_storage_blobs + siblings + git_block_dependencies
[self] +
descendents +
active_storage_blobs +
siblings +
git_block_dependencies
end
def git_destroy_dependencies(website)
[self] + descendents + active_storage_blobs
[self] +
descendents +
active_storage_blobs
end
def url
......
......@@ -145,6 +145,7 @@ class Education::Program < ApplicationRecord
def git_dependencies(website)
[self] +
active_storage_blobs +
git_block_dependencies +
university_people_through_involvements +
university_people_through_involvements.map(&:active_storage_blobs).flatten +
university_people_through_involvements.map(&:teacher) +
......
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