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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer Model.reflections over private Model#_reflections. #2927

Draft
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

simi
Copy link
Contributor

@simi simi commented Jul 1, 2024

馃毀 This targets 2.x branch.

  • _reflections returns different key type per Rails version

鈩癸笍 Model.reflections seems supported for 6.0+ (I have not checked earlier versions since those seems unsupported).

馃挕 This fixes issues at RubyGems.org with Rails 7.2 beta compatibility.

- `_reflections` returns different key type per Rails version
@adrianthedev
Copy link
Collaborator

adrianthedev commented Jul 8, 2024

@Paul-Bob please review this and it works, let's ship it for 2.0!

We should check out if we can port it to 3.0 as well.

@simi
Copy link
Contributor Author

simi commented Jul 8, 2024

I can update also to reflect_on_association, which seems better IMHO. Same should be applied to 3.x.

@adrianthedev
Copy link
Collaborator

OK. let's retry that one then. Maybe it works on your end!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Next up
Development

Successfully merging this pull request may close these issues.

None yet

2 participants