This project is archived and is in readonly mode.
Changeset [0307c538eca5a3b41d326d1357f09e4e4f5f3e71] by John Firebaugh
Revision 0307c538eca5a3b41d326d1357f09e4e4f5f3e71,
committed 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...
3 changed files
-
M
activemodel/lib/active_model/naming.rb -
M
activemodel/lib/active_model/translation.rb -
M
activemodel/test/cases/translation_test.rb