README.md in ohm-1.3.2 vs README.md in ohm-1.4.0
- old
+ new
@@ -441,12 +441,11 @@
lookups.
In the `Event` example, the index on the name attribute will
allow for searches like `Event.find(:name => "some value")`.
-Note that the {Ohm::Model::Validations#assert_unique assert_unique}
-validation and the methods {Ohm::Model::Set#find find} and
+Note that the methods {Ohm::Model::Set#find find} and
{Ohm::Model::Set#except except} need a corresponding index in order to work.
### Finding records
You can find a collection of records with the `find` method:
@@ -460,11 +459,14 @@
```ruby
# Find all users from Argentina
User.find(:country => "Argentina")
-# Find all activated users from Argentina
-User.find(:country => "Argentina", :status => "activated")
+# Find all active users from Argentina
+User.find(:country => "Argentina", :status => "active")
+
+# Find all active users from Argentina and Uruguay
+User.find(status: "active").combine(country: ["Argentina", "Uruguay"])
# Find all users from Argentina, except those with a suspended account.
User.find(:country => "Argentina").except(:status => "suspended")
# Find all users both from Argentina and Uruguay