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

Inject ResourceRegistry.configuration in Resource.load #4

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

atd
Copy link
Contributor

@atd atd commented Sep 10, 2024

🚪 Why?

🔑 What?

🏡 Context

Copy link
Member

@gtrias gtrias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

Makes totally sense :)

configuration: ResourceRegistry::Configuration
).returns(Resource)
end
def self.load(spec, configuration: ResourceRegistry.configuration)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future I see space to have a Factory class only for this purpose, but let's keep evolving things :)

@atd atd merged commit 8a9492d into add-ci-tests Sep 11, 2024
1 check failed
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.

2 participants