This project is archived and is in readonly mode.
Changeset [5b8dbb0eee0a3277ef51e4bf31555ef27410272f] by John Firebaugh
Revision 5b8dbb0eee0a3277ef51e4bf31555ef27410272f,
committed by John Firebaugh
· March 31st, 2011 @ 06:21 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/5b8dbb0eee0a3277ef51e4bf31555...
3 changed files
-
M
activemodel/lib/active_model/naming.rb -
M
activemodel/lib/active_model/translation.rb -
M
activemodel/test/cases/translation_test.rb