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

Fix an issue with include multiple Phlex Kits #794

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

joeldrapper
Copy link
Collaborator

@joeldrapper joeldrapper commented Sep 29, 2024

Closes #791

@@ -3,36 +3,44 @@
module Phlex::Kit
module LazyLoader
def method_missing(name, ...)
if name[0] == name[0].upcase && __phlex_kit_constants__.include?(name) && __get_phlex_kit_constant__(name) && methods.include?(name)
mod = self.class
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This now searches for the constant from the class rather than from the kit, since it may find the constant from another kit.

@joeldrapper joeldrapper merged commit c534a98 into main Sep 29, 2024
5 checks passed
@joeldrapper joeldrapper deleted the fix-multi-kit-include-issue branch September 29, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Including multiple component kits causes issues with lazy loading implementation
1 participant