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

Update scope to make it compatible with Rails 6.1 + Ruby 3.2 #13

Closed
wants to merge 1 commit into from

Conversation

pcreux
Copy link
Contributor

@pcreux pcreux commented Sep 14, 2023

The scope scope :nearest_neighbors, ->(attribute_name, vector = nil, distance:) { is breaking on Rails 6.1 with Ruby 3.2 with error:

ArgumentError: wrong number of arguments (given 0, expected 1..2; required keyword: distance)

This seems to be related to rails/rails#46934.

I don't know if you want to support this so I'm closing this PR for now. Further updates in: retailzipline#1

@pcreux pcreux changed the title Test rails 6.1 with ruby 3.2 Test Rails 6.1 with Ruby 3.2 Sep 14, 2023
@pcreux pcreux closed this Sep 14, 2023
@pcreux pcreux changed the title Test Rails 6.1 with Ruby 3.2 Update scope to make it compatible with Rails 6.1 + Ruby 3.2 Sep 14, 2023
@pcreux
Copy link
Contributor Author

pcreux commented Sep 18, 2023

I re-opened this PR: #14

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.

1 participant