Please sign in to comment.
Make serializable_hash take attr values directly from attributes hash.
Previously, it would use send() to get the attribute. In Active Resource, this would rely on hitting method missing. If a method with the same name was defined further up the ancestor chain, that method would wrongly be called. This change fixes test_to_xml_with_private_method_name_as_attribute in activeresource/test/cases/base_test.rb, which was broken after 51bef9d, because that change made to_xml use serializable_hash.
- Loading branch information...
Showing with 23 additions and 4 deletions.