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.3k stars 369 forks source link

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

Closed sethaddison closed 1 month ago

sethaddison commented 2 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 1 month 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.