Docs: Note limitation of the *_present predicate

Per https://github.com/activerecord-hackery/ransack/issues/641, `*_present` is only compatible with string-like columns.
This commit is contained in:
Jared Beck 2018-07-20 16:49:13 -04:00 committed by GitHub
parent 437f642c55
commit 79e54bea48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ List of all possible predicates
| `*_lteq` | less than or equal | |
| `*_gt` | greater than | |
| `*_gteq` | greater than or equal | |
| `*_present` | not null and not empty | e.g. `q[name_present]=1` (SQL: `col is not null AND col != ''`) |
| `*_present` | not null and not empty | Only compatible with string columns. Example: `q[name_present]=1` (SQL: `col is not null AND col != ''`) |
| `*_blank` | is null or empty. | (SQL: `col is null OR col = ''`) |
| `*_null` | is null | |
| `*_not_null` | is not null | |