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

Rails 7.2: wrong number of arguments (given 2, expected 1) #536

Closed
sethaddison opened this issue Jul 11, 2024 · 1 comment · Fixed by #535
Closed

Rails 7.2: wrong number of arguments (given 2, expected 1) #536

sethaddison opened this issue Jul 11, 2024 · 1 comment · Fixed by #535

Comments

@sethaddison
Copy link

sethaddison commented Jul 11, 2024

After upgrading from rails 7.1.3.4 to rails 7.2.0.beta1, PgSearch.multisearch generates the following error:
wrong number of arguments (given 2, expected 1)

My exact code is:
results = PgSearch.multisearch(@query).where(account_id: current_account.id)

Works with no issue on rails 7.1x

@sethaddison sethaddison changed the title wrong number of arguments (given 2, expected 1) Rails 7.2: wrong number of arguments (given 2, expected 1) Jul 11, 2024
@nertzy
Copy link
Collaborator

nertzy commented Aug 11, 2024

Sorry, I haven't had much time to get a release put together. I will get something out soon, especially since Active Record 7.2 is released.

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 a pull request may close this issue.

2 participants