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

Added compact_value for active support enumerable arrays #41285

Closed
wants to merge 0 commits into from

Conversation

adityapandit17
Copy link
Contributor

Added compact_value method active support enumerable arrays. It will remove all matching elements passed as parameters.
and also it removes nil after it.

casperisfine pushed a commit to Shopify/rails that referenced this pull request Feb 19, 2021
Ref: rails#41385

Otherwise the association isn't marked as loaded, and a ThroughAssociation
might perform the same query uselessly.

`already_loaded?` also has to be made lazy, because rails#41285
made it so that alls the preloaders are instiated together before being ran.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant