You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 (likeEnvelope
) 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!
The text was updated successfully, but these errors were encountered: