forked from mongodb/mongoid
/
HISTORY
32 lines (22 loc) · 990 Bytes
/
HISTORY
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
=== 0.10.6
- Fixed bug when trying to set empty strings on number
fields. (TypeError: can't convert Fixnum into String)
- Document.delete_all now drops the collection if
conditions are empty or nil.
=== 0.10.5
- Documents that are embedded not properly respond to
Document#destroy and Document#delete.
- Documents can now be saved sans validation with
Document#save(false)
=== 0.10.4
- Documents no longer inherit from Mongoid::Document.
Please include Mongoid::Document in all your models now.
- Config module added, you can now set one option:
Mongoid.raise_not_found_error = (true|false)
- When set to false, a Mongoid::Errors::DocumentNotFound
will NOT get thrown when performing a Document.find(id)
that does not return a document from the database.
This defaults to true.
- Mongoid::Document.collection_name macro added. You can
now set the name of the database collection to persist to.
- Mongoid::Criteria#select becomes Mongoid::Criteria#only