-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Hello there!
I was working on boot time improvements in our application and I noticed that loading the DocuSign gem is taking a significant amount of time there (~300ms, when Rails takes ~100ms). I also realized we are using only a few models from all the variety the gem provides. However, when I required only these models that we mention in our code, our test suit that is based on recorded responses from the API started to fail with NameError on missing constants. Some models (like Envelope) consist of objects of different model types. To safely require the minimal subset of models that works for my application I need to know the internal structure of each one.
Is it possible for you to update each model (or the generator that creates them) to explicitly require dependent models, so I can require only one or 2 files from the gem and be sure my application doesn't break on missing constant?
Thanks!