diff --git a/app/models/communication/website/with_dependencies.rb b/app/models/communication/website/with_dependencies.rb index 8e490602eac308b2d1c1ab9111ad3c29c71051a0..bde400a23e73aeebba0a26552d8d7a27b73fdc6a 100644 --- a/app/models/communication/website/with_dependencies.rb +++ b/app/models/communication/website/with_dependencies.rb @@ -53,6 +53,10 @@ module Communication::Website::WithDependencies about.teachers end + def people_in_blocks + [] # TODO + end + def people @people ||= begin people = [] @@ -60,6 +64,7 @@ module Communication::Website::WithDependencies people += teachers if has_teachers? people += administrators if has_administrators? people += researchers if has_researchers? + people += people_in_blocks if has_people_in_blocks? people.uniq.compact end end @@ -104,6 +109,11 @@ module Communication::Website::WithDependencies authors.compact.any? end + def has_people_in_blocks? + # TODO + people_in_blocks.compact.any? + end + def has_persons? has_authors? || has_administrators? || has_researchers? || has_teachers? end