rails/activemodel/lib
Jon Leighton a15424b92c 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
51bef9d8fb0b4da7a104425ab8545e9331387743, because that change made
to_xml use serializable_hash.
2011-09-26 12:40:03 +01:00
..
active_model Make serializable_hash take attr values directly from attributes hash. 2011-09-26 12:40:03 +01:00
active_model.rb We're in 2011, let's update our license 2011-02-22 18:24:20 -02:00