docs/docs/getting-started/using-predicates.md in ransack-3.0.1 vs docs/docs/getting-started/using-predicates.md in ransack-3.1.0
- old
+ new
@@ -21,10 +21,10 @@
```
The syntax for `OR` queries on an associated model is not immediately obvious, but makes sense. Assuming a `User` `has_one` `Account` and the `Account` has `attributes` `foo` and `bar`:
```ruby
->> User.ransack(account_foo_or_account_bar: 'val').result.to_sql
+>> User.ransack(account_foo_or_account_bar_cont: 'val').result.to_sql
=> SELECT "users".* FROM "users" INNER JOIN accounts ON accounts.user_id = users.id WHERE ("accounts.foo LIKE '%val%' OR accounts.bar LIKE '%val%')
```
Below is a list of the built-in predicates of Ransack and their opposites. You may already
be familiar with some of the predicates, as they also exist in the ARel library.