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
Tsutomu Kuroda b0e2fc843b Fix human attribute_name to handle deeply nested attributes
When a model nests another model that also nests yet another model
using accepts_nested_attributes_for method, its Errors object can
have an attribute name with "contacts.addresses.street" style.

In this case, the dots within the namespace should be substituted
with slashes so that we can provide the translation under the
"activemodel.attributes.person/contacts/addresses.street" key.

This commit is related to #3859.
2012-05-16 08:39:48 +09:00
..
locale confirmation validation error attribute 2012-04-23 17:16:05 -04:00
mass_assignment_security Speed up mass assignment by avoiding extra loops. 2012-03-16 13:40:42 +01:00
serializers Use respond_to?(:to_ary) rather than is_a?(Enumerable) to detect collection-thing. 2012-05-11 20:11:04 +01:00
validations Merge pull request #5942 from bcardarella/confirmation_error_message_on_confirmation_attribute 2012-04-29 16:29:33 -07:00
attribute_methods.rb allow define_attribute_methods to pass multiple values 2012-05-14 11:35:15 -05:00
callbacks.rb AS::Callbacks: :skip_after_callbacks_if_terminated option 2012-02-03 17:57:53 +02:00
configuration.rb Add better errors reporting for ActiveModel::Configuration 2012-04-04 14:52:44 +02:00
conversion.rb Fix comments about to_partial_path 2012-03-10 17:40:27 -05:00
dirty.rb updating define_attribute_methods documentation 2012-05-14 11:38:23 -05:00
errors.rb Refactor AMo::Errors 2012-04-27 21:04:13 -03:00
lint.rb Allow ActiveModel::Name to duck type 2012-03-28 18:25:06 +02:00
mass_assignment_security.rb Improve docs for attr_accessible|protected related to Hash#except|slice 2012-03-06 23:52:03 -03:00
model.rb fix bad format [ci skip] 2012-04-14 11:58:43 +03:00
naming.rb Refactor human attribute name 2012-04-28 12:14:59 -03:00
observer_array.rb
observing.rb notify_observers should be public 2012-04-30 22:13:26 -04:00
railtie.rb
secure_password.rb Merge branch 'master' of github.com:lifo/docrails 2012-04-25 18:33:36 +05:30
serialization.rb Missed colon 2012-05-14 09:13:59 +04:00
test_case.rb Remove dead code from AMo. 2011-12-20 18:38:20 +01:00
translation.rb Fix human attribute_name to handle deeply nested attributes 2012-05-16 08:39:48 +09:00
validations.rb Kill whitespaces ✂️ 2012-05-15 13:38:29 -03:00
validator.rb Remove Array.wrap call in ActiveModel 2012-01-06 01:04:33 -03:00
version.rb rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00