You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What was the SQL that scoped_search ended up generating? {:conditions=>["([\"(\\\"users\\\".\\\"admin\\\" <> ?)\", false])"]}
which when passed to AR yields:
What search query did you use?
Issuing a search for the name of the field, ie, a user model with a boolean "admin" field and a search term of "admin".
What is the search definition used on your models?
Example here:
https://github.com/theforeman/foreman/blob/4a61ebc9f2c7a41301672843eb96f1b265de5335/app/models/user.rb#L124
What do the tables involved in your search definition look like? Please include the type of the fields.
What was the SQL that scoped_search ended up generating?
{:conditions=>["([\"(\\\"users\\\".\\\"admin\\\" <> ?)\", false])"]}
which when passed to AR yields:
In this case, the SQL array was converted to a string, etc.
Versions:
scoped_search .18
postgres 12.1
actriverecord 6.0.3.2
ruby 2.5.5p157
The text was updated successfully, but these errors were encountered: