Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can models require dependant models by themselves? #124

Open
barthez opened this issue Jan 26, 2024 · 0 comments
Open

Can models require dependant models by themselves? #124

barthez opened this issue Jan 26, 2024 · 0 comments
Assignees

Comments

@barthez
Copy link

barthez commented Jan 26, 2024

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!

@asif-docusign asif-docusign self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants