Brought back alternative convention for namespaced models in i18n #1556

Merged
merged 1 commit into from Jun 8, 2011

5 participants

@thoefer

See issue #1402

I did NOT implement the usage for "Namespaced::Model.new.errors.add(...)" as I am a bit short in time currently. I basically brought back the changes from "jfirebaugh" in commit "5b8dbb0".

This means you can write your yaml file like this:

...
activerecord:
models:
invoice:
item: "Invoice::Item dot notation"
invoice/item: "Invoice::Item slash notation"
attributes:
invoice/item:
name: "Invoice::Item.name slash notation"
invoice:
item:
name: "Invoice::Item.name dot notation"

@josevalim josevalim merged commit b64524d into rails:master Jun 8, 2011
@sikachu
Ruby on Rails member

I believe this one should be backported to 3-1-stable as well, because it's a bug fix.

@josevalim
Ruby on Rails member

3-1-stable pull request please? :)

@sikachu
Ruby on Rails member

This has been backported in #1562

@paneq

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment