lib/tapioca/compilers/dsl/smart_properties.rb in tapioca-0.5.1 vs lib/tapioca/compilers/dsl/smart_properties.rb in tapioca-0.5.2

- old
+ new

@@ -82,13 +82,13 @@ end end sig { override.returns(T::Enumerable[Module]) } def gather_constants - all_classes.select do |c| - c < ::SmartProperties - end.reject do |c| - name_of(c).nil? || c == ::SmartProperties::Validations::Ancestor + all_modules.select do |c| + name_of(c) && + c != ::SmartProperties::Validations::Ancestor && + c < ::SmartProperties && ::SmartProperties::ClassMethods === c end end private