Autoregister with call: false with dry-system



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

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?


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