forked from mongomapper/mongomapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UPGRADES
15 lines (14 loc) · 1.06 KB
/
UPGRADES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0.8 => ??
* [attribute]_before_typecast should become [attribute]_before_type_cast (note the extra _)
* Change validates_exclusion_of :within option to :in
* Change validates_inclusion_of :within option to :in
* descendants now returns all descendants use direct_descendants for just children
* Switch validate_on_create and validate_on_update use validate :on => :create syntax
* Added #update_attribute
0.7.6 => 0.8
* Proxy#owner has been removed in favor of Proxy#proxy_owner
* @new instance variable renamed to @_new (you shouldn't be using this anyway)
* Removed undefining of object_id in proxies and equal? method in Equality. This means checking equal? for a proxy and a regular document will always be false even if proxy refers to same document. Check Proxy#target instead. (ie: root.equal?(item.root.target))
* find no longer takes options as a last argument. It only works with id, multiple ids, array of ids.
* MongoMapper::MongoMapperError is now MongoMapper::Error
* metaclass, meta_eval, meta_def, class_def removed as they were not being used