1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib/active_model
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
51bef9d8fb, because that change made
to_xml use serializable_hash.
2011-09-26 12:40:03 +01:00
..
locale Remove weak_passwords list and the length/strong password validator, leave that up to the programmer 2010-12-19 15:01:29 -02:00
mass_assignment_security MassAssignmentProtection: consider 'id' insensetive in StrictSanitizer 2011-08-13 16:22:26 -07:00
serializers Refactor AMo as_json. 2011-09-23 00:19:46 +02:00
validations Typo fix 2011-08-25 16:43:43 +03:00
attribute_methods.rb Generate attribute method unless it's already in the module. 2011-09-14 00:00:37 +01:00
callbacks.rb Remove extra white spaces on ActiveModel docs. 2011-05-23 20:39:10 -03:00
conversion.rb Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar. 2011-08-13 16:22:26 -07:00
dirty.rb Fix typo in ActiveModel::Dirty comment. define_attribute_methods is a class method, not attribute. 2011-09-02 13:28:38 +01:00
errors.rb Add ability to get an individual full error message + test for full_messages. 2011-09-09 18:28:25 +10:00
lint.rb Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar. 2011-08-13 16:22:26 -07:00
mass_assignment_security.rb Minor formating fix 2011-06-24 03:52:39 +06:00
naming.rb Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar. 2011-08-13 16:22:26 -07:00
observer_array.rb Remove extra white spaces on ActiveModel docs. 2011-05-23 20:39:10 -03:00
observing.rb Allow ActiveRecord observers to be disabled. 2011-08-12 20:48:44 -07:00
railtie.rb
secure_password.rb Add comments about bcrypt-ruby gem to SecurePassword 2011-09-03 00:44:33 -05:00
serialization.rb Make serializable_hash take attr values directly from attributes hash. 2011-09-26 12:40:03 +01:00
test_case.rb
translation.rb Get rid of the alternate namespace lookup. 2011-06-11 18:01:26 +02:00
validations.rb Remove extra white spaces on ActiveModel docs. 2011-05-23 20:39:10 -03:00
validator.rb Remove #among? from Active Support 2011-04-13 20:25:28 +08:00
version.rb Master version is 3.2.0.beta 2011-06-30 10:18:36 -03:00