Skip to content

Replace deprecated __find_args__ with Array#flatten - #278

Closed
samiFakhfakhScalingo wants to merge 1 commit into
mongoid:masterfrom
samiFakhfakhScalingo:fix/remove-deprecated-find-args
Closed

samiFakhfakhScalingo wants to merge 1 commit into
mongoid:masterfrom
samiFakhfakhScalingo:fix/remove-deprecated-find-args

Conversation

@samiFakhfakhScalingo

Copy link
Copy Markdown
Contributor

find_args is deprecated in Mongoid 9.x and will be removed in Mongoid 10.0
It's functionally equivalent to Array#flatten
This fixes the deprecation warning: DEPRECATION WARNING: find_args is deprecated and will be removed from Mongoid 10.0

@github-actions

github-actions Bot commented May 19, 2026 •

Copy link
Copy Markdown

Danger Report

Errors

  • One of the lines below found in CHANGELOG.md doesn't match the expected format. Please make it look like the other lines, pay attention to version numbers, periods, spaces and date formats.

Markdowns

* [#XXX](https://github.com/mongoid/mongoid-slug/pull/XXX): Replace deprecated `__find_args__` with `Array#flatten` - [@samiFakhfakhScalingo](https://github.com/samiFakhfakhScalingo).
does not include a pull request link

View run

__find_args__ is deprecated in Mongoid 9.x and will be removed in
Mongoid 10.0. It is functionally equivalent to Array#flatten.
@samiFakhfakhScalingo
samiFakhfakhScalingo force-pushed the fix/remove-deprecated-find-args branch from a8f8741 to 7a438ca Compare May 19, 2026 11:32
@dblock

dblock commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks, fix CI/CHANGELOG pls?

@aurelien-reeves-scalingo

Copy link
Copy Markdown
Contributor

For some reason I think @samiFakhfakhScalingo won't be able to reply / do the requested changes soon.

I'll re-send the changes in another PR

@dblock

dblock commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Closed via #279.

@dblock dblock closed this May 22, 2026
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.

3 participants