Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
http://www.casebook.net
MIT License
1.35k stars 371 forks source link

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

Closed sethaddison closed 3 months ago

sethaddison commented 4 months ago

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

nertzy commented 3 months ago

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.