Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Brought back alternative convention for namespaced models in i18n #1556

Merged
merged 1 commit into from Jun 8, 2011

Conversation

Projects
None yet
5 participants

thoefer commented Jun 8, 2011

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 added a commit that referenced this pull request Jun 8, 2011

@josevalim josevalim Merge pull request #1556 from thoefer/master
Brought back alternative convention for namespaced models in i18n
b64524d

@josevalim josevalim merged commit b64524d into rails:master Jun 8, 2011

Member

sikachu commented Jun 8, 2011

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

Contributor

josevalim commented Jun 8, 2011

3-1-stable pull request please? :)

Member

sikachu commented Jun 8, 2011

This has been backported in #1562

Contributor

paneq commented Jun 10, 2011

Thank you.

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