Skip to content

Conversation

@javierav
Copy link
Collaborator

This PR fixes a bug in the helper. As implemented, if the original class or any of its ancestors already had the self.inherited hook defined, it was never called because it was being overridden by the helper.

In my case, it was causing a conflict with the ViewComponent gem https://github.com/ViewComponent/view_component/blob/main/lib/view_component/base.rb#L516

@javierav javierav requested a review from adrianthedev March 11, 2025 23:31
@javierav javierav self-assigned this Mar 11, 2025
@javierav javierav marked this pull request as draft March 11, 2025 23:35
@javierav
Copy link
Collaborator Author

I have put it as a draft to add some test tomorrow to check this.

@javierav javierav marked this pull request as ready for review March 12, 2025 08:12
@javierav
Copy link
Collaborator Author

Tests ready @adrianthedev !

@javierav javierav requested a review from adrianthedev March 12, 2025 08:13
@adrianthedev adrianthedev merged commit 67389d7 into avo-hq:main Mar 12, 2025
8 checks passed
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