projects/domain/src/domain_module_extension.rb in foobara-0.0.9 vs projects/domain/src/domain_module_extension.rb in foobara-0.0.10

- old
+ new

@@ -102,9 +102,11 @@ child = Object.const_get(child_name) break if child.foobara_domain? break if child.foobara_organization? + + # TODO: unclear why we need this check, hmmm, figure it out and document it (or delete if not needed) break if child.constants(false).any? do |constant| value = child.const_get(constant) # TODO: can we make this not coupled to model project?? value.is_a?(Types::Type) || (value.is_a?(::Class) && value < Foobara::Model)