rails/rails — pull request #17003 by arjan0307 (2014-09-22 12:50:46+00:00)
Title: Fix translation in dependent_restrict_with_error

This fixes an issue where the translation would be expected on the associated model itself, instead of on the association's parent.

For example

```
class Foo < ActiveRecord::Base
has_many :bars
end
```
Expects a translation to be present on `en.activerecord.attributes.bar.bars`

This fix changes this to expect a translation to be present on `en.activerecord.attributes.foo.bars`

This seems like a more sensible approach, since the association can be considered an attribute of the association's parent, but not as an attribute of the associated object itself.