I noticed a change in the behavior of DataMapper between 0.10.0 and
0.10.1: calling @object.errors[:property] on an object with no errors
used to return nil.  Now it returns [].

I understand that this was done to make DataMapper more ActiveModel
compliant, certainly a worthy goal.  However, it seems like a pretty
significant change to go without mention in the notes of this point
release, so I thought I'd call it out here.

Specifically, it broke MerbAdmin on line 9 of
http://github.com/sferik/merb-admin/blob/master/app/views/main/_properties.html.erb,
which has the effect of styling every row as though it has errors.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to