Please sign in to comment.
Fix nested attribute loading from anonymous classes under Ruby 1.9
In Ruby 1.8, anonymous classes have an empty string for a name. In Ruby 1.9, name is nil. This causes an error when loading nested attributes from an anonymous class as we determine its namespace. Stringify the name before we try to split it.
- Loading branch information...
Showing with 7 additions and 1 deletion.