lib/tapioca/dsl/compilers/active_storage.rb in tapioca-0.7.1 vs lib/tapioca/dsl/compilers/active_storage.rb in tapioca-0.7.2
- old
+ new
@@ -44,11 +44,15 @@
# end
# ~~~
class ActiveStorage < Compiler
extend T::Sig
- ConstantType = type_member(fixed: T.all(Module,
- ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods))
+ ConstantType = type_member do
+ {
+ fixed: T.all(Module,
+ ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods),
+ }
+ end
sig { override.void }
def decorate
return if constant.reflect_on_all_attachments.empty?