lib/tapioca/dsl/compilers/active_storage.rb in tapioca-0.9.4 vs lib/tapioca/dsl/compilers/active_storage.rb in tapioca-0.10.0

- old
+ new

@@ -72,14 +72,18 @@ ) end end end - sig { override.returns(T::Enumerable[Module]) } - def self.gather_constants - descendants_of(::ActiveRecord::Base) - .reject(&:abstract_class?) - .grep(::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods) + class << self + extend T::Sig + + sig { override.returns(T::Enumerable[Module]) } + def gather_constants + descendants_of(::ActiveRecord::Base) + .reject(&:abstract_class?) + .grep(::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods) + end end private sig do