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

Bugfix: implement #macro in IronTrail::Reflection #14

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

andrepiske
Copy link
Collaborator

@andrepiske andrepiske commented Dec 30, 2024

Jira task

Essentially, calling SomeModel.reflect_on_all_associations(:belongs_to) (or with any other argument other than nil) fails because IronTrail::Reflection doesn't define the macro method, even though it can't yet be defined via a macro.

Kudos to @cuzik for the bug report and providing the fix!

@andrepiske andrepiske changed the title Bugfix: Fix reflection Bugfix: implement #macro in IronTrail::Reflection Dec 30, 2024
@andrepiske andrepiske added the bug Something isn't working label Dec 30, 2024
@andrepiske andrepiske self-assigned this Dec 30, 2024
@andrepiske andrepiske requested a review from cuzik December 30, 2024 16:34
@andrepiske andrepiske marked this pull request as ready for review December 30, 2024 16:34
@andrepiske andrepiske merged commit d597cc1 into main Dec 30, 2024
7 checks passed
@andrepiske andrepiske deleted the define-reflection-macro branch December 30, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants