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

add improvements to autoloader #178

Merged
merged 2 commits into from
Jun 15, 2018
Merged

add improvements to autoloader #178

merged 2 commits into from
Jun 15, 2018

Conversation

josephmancuso
Copy link
Member

This adds a 2 new methods to the autoloader and several new parameters.

We can now specify if we want to autoload only objects within our app and not any outside applications:

Autoload().instances(['app/models'], Model)

(this defaults to only classes in our app)

or outside our app too which essentially returns all classes found:

Autoload().instances(['app/models'], Model, only_app=False)

as well as using the collect which will gather all classes and not just instances:

Autoload().collect(['app/models'], only_app=False)

@josephmancuso josephmancuso self-assigned this Jun 15, 2018
@josephmancuso josephmancuso added the enhancement New feature or request label Jun 15, 2018
@coveralls
Copy link

coveralls commented Jun 15, 2018

Coverage Status

Coverage decreased (-14.9%) to 76.085% when pulling d2b4ecd on update-autoloader into 7f76d48 on develop.

@josephmancuso josephmancuso merged commit 50da29f into develop Jun 15, 2018
@josephmancuso josephmancuso mentioned this pull request Jun 15, 2018
27 tasks
@josephmancuso josephmancuso deleted the update-autoloader branch June 16, 2018 02:47
@clsource clsource mentioned this pull request Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants