lib/tapioca/dsl/compilers/active_model_attributes.rb in tapioca-0.11.6 vs lib/tapioca/dsl/compilers/active_model_attributes.rb in tapioca-0.11.7

- old
+ new

@@ -37,10 +37,12 @@ # end # ~~~ class ActiveModelAttributes < Compiler extend T::Sig - ConstantType = type_member { { fixed: T.all(Class, ::ActiveModel::Attributes::ClassMethods) } } + ConstantType = type_member do + { fixed: T.all(T::Class[::ActiveModel::Attributes], ::ActiveModel::Attributes::ClassMethods) } + end sig { override.void } def decorate attribute_methods = attribute_methods_for_constant return if attribute_methods.empty?