Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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