wvanbergen / scoped_search

Easily search you ActiveRecord models with a simple query language that converts to SQL.
MIT License
265 stars 78 forks source link

Validate both in and notin the same way #219

Closed parthaa closed 1 year ago

parthaa commented 1 year ago

This commit fixes the following error

Model.search_for("id !^ (2,3)") fails with ScopedSearch::QueryNotSupported: Value '2,3' is not valid for field 'id'

It does it by splitting value for both in and not in

adamruzicka commented 1 year ago

Could we get a test for this?

parthaa commented 1 year ago

Could we get a test for this?

Updated