aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorTsutomu Kuroda <t-kuroda@oiax.jp>2011-12-05 22:57:47 +0900
committerTsutomu Kuroda <t-kuroda@oiax.jp>2011-12-05 22:57:47 +0900
commitdff19f7be2584d9eaa869de14a919aa70d029d92 (patch)
treeb4ab2164bfe288e0e97ca301b6a147916cda79fa /activerecord
parentd1d51077d5f18f2f6dfb2273b0c5d5e20fbe1de3 (diff)
downloadrails-dff19f7be2584d9eaa869de14a919aa70d029d92.tar.gz
rails-dff19f7be2584d9eaa869de14a919aa70d029d92.tar.bz2
rails-dff19f7be2584d9eaa869de14a919aa70d029d92.zip
Fix human_attribute_name to handle names with dots
Nested I18n namespace lookup under activerecord.models is deprecated now (c19bd4f). But when a model uses accepts_nested_attributes_for, its Errors object can have an attribute name with "addresses.street" style. In this case, the dots should be substituted with slashes so that we can provide the translation under the "activemodel.attributes.person.addresses/street" key.
Diffstat (limited to 'activerecord')
0 files changed, 0 insertions, 0 deletions