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

- old
+ new

@@ -98,13 +98,17 @@ create_fetch_field_methods(field, model, returns_collection: false) end end end - sig { override.returns(T::Enumerable[Module]) } - def self.gather_constants - descendants_of(::ActiveRecord::Base).select do |klass| - klass < ::IdentityCache::WithoutPrimaryIndex + class << self + extend T::Sig + + sig { override.returns(T::Enumerable[Module]) } + def gather_constants + descendants_of(::ActiveRecord::Base).select do |klass| + klass < ::IdentityCache::WithoutPrimaryIndex + end end end private