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

Make scope compatible with Rails 6.1 + Ruby 3.2.2 #1

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pcreux
Copy link
Member

@pcreux pcreux commented Sep 14, 2023

It seems that scopes with keyword arguments are not supported on Rails 6.1 + Ruby 3.2.

We get the error ArgumentError: wrong number of arguments (given 3, expected 1..2; required keyword: distance)

Swapping the keyword argument for a hash make it to work. 馃し

@pcreux
Copy link
Member Author

pcreux commented Sep 18, 2023

I opened a similar PR against the source repo: ankane#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant