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

Prepend initialize method only #103

Merged
merged 1 commit into from
Feb 8, 2021
Merged

Conversation

adam12
Copy link
Contributor

@adam12 adam12 commented Jan 14, 2021

Move initialize method to it's own module and prepend
it inside the include hook.

Revert the prepending of InstanceMethods module in
favour of using include.

Fixes instances where finalize! methods in classes that
include Dry::Configurable are never called due to the
ancestor chain.

Fixes hanami/view#184

Move initialize method to it's own module and prepend
it inside the `include` hook.

Revert the prepending of `InstanceMethods` module in
favour of using `include`.

Fixes instances where `finalize!` methods in classes that
include `Dry::Configurable` are never called due to the
ancestor chain.
Copy link
Member

@solnic solnic left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this. 👍🏻 from me.

@timriley timriley merged commit 771a064 into dry-rb:master Feb 8, 2021
@adam12 adam12 deleted the prepend-initializer branch February 8, 2021 12:14
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.

Specs are broken on master
3 participants