Autoregister with call: false with dry-system


#1

Hi,

I want to put my JSON Serializers into a dry-system container. Those Serializers have a constructor that requires a value (model) and are used as a Class in Rails controllers:

format.json do 
   render json: model, serializer: MySerializerClass
end

Therefore I’d like to load them as a Class with the auto_register method and (call: false). Is there currently a way to do this?


#2

Does not really make sens to inject your serializers, how will you use them if it worked? And wthat will be the benefit?