This project is archived and is in readonly mode.

Changeset [0307c538eca5a3b41d326d1357f09e4e4f5f3e71] by John Firebaugh

March 31st, 2011 @ 06:23 AM

Support both conventions for translations for namespaced models.

3.0.0 - 3.0.1 required 'namespace/model'
3.0.2 - 3.0.5 required 'namespace.model' (nested). It has the advantage of
keeping the i18n file DRY when multiple models are in the same namespace,
but can lead to translation key conflicts if models are nested within
models.

[#6448, #5572] https://github.com/rails/rails/commit/0307c538eca5a3b41d326d1357f09...

Committed by John Firebaugh

  • M activemodel/lib/active_model/naming.rb
  • M activemodel/lib/active_model/translation.rb
  • M activemodel/test/cases/translation_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>