Skip to content

Commit

Permalink
Merge pull request #64 from jordan-brough/expect-except
Browse files Browse the repository at this point in the history
Fix "expect" -> "except" in Readme
  • Loading branch information
GeorgeKaraszi authored Aug 19, 2021
2 parents 240ff7f + 688fef9 commit 33000ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,12 +649,12 @@ SELECT "people".*

```ruby
users = Person.where(id: 1..5)
expect_these_users = Person.where(id: 2..4)
except_these_users = Person.where(id: 2..4)

Person.union_except(users, expect_these_users) #=> [#<Person id: 1, ..>, #<Person id: 5,..>]
Person.union_except(users, except_these_users) #=> [#<Person id: 1, ..>, #<Person id: 5,..>]

# You can also chain union's
Person.union.except(users, expect_these_users).union(Person.where(id: 20))
Person.union.except(users, except_these_users).union(Person.where(id: 20))
```

Query Output
Expand Down

0 comments on commit 33000ed

Please sign in to comment.