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

Select from all possible load paths #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Morozzzko
Copy link
Contributor

Addresses #20

Background: I'm extending Rails load paths to load models from directories other than app. It wasn't possible to annotate models outside the default app/models directory, so I've implemented it

Unfortunately, I have absolutely no idea how to test it without a running Rails application, so I just manually tested it with my application and let it be

If you have any tips on how to test those things, it would be great

@Morozzzko
Copy link
Contributor Author

Found another issue there. ApplicationRecord models do get annotated despite everything.

Also, found a bug:

If you have a model inside a module, the plugin will ignore the module name. Gonna fix it soon

@Morozzzko
Copy link
Contributor Author

Woops, sorry. That was just a misconfiguration on my side. However, the new patch would still be helpful, I believe

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

Successfully merging this pull request may close these issues.

1 participant