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

Rails3 i18n #204

Merged
2 commits merged into from Apr 30, 2011

Conversation

Projects
None yet
2 participants
Contributor

benmanns commented Nov 1, 2010

Hey Ben (Johnson),

In Rails 3, Model.human_name has been deprecated in favor of Model.model_name.human. In my projects I translate the Session name from "User session" to "Session". However, because the Model.model_name.human method requires some more methods in the class it's acting on (i18n_scope and lookup_ancestors), the new method wasn't working with Authlogic.

I have added tests for both the deprecated method and the Rails 3 method and have added code to make the latter pass.

Let me know if you want me to change anything. I've tried to keep everything the same syntactically so as not to mash coding styles.

Ben (Manns)

Contributor

jjb commented Jan 7, 2011

hi-- i'm going to try to maintain the One True Rails 3 Fork :) please send your pull request to https://github.com/jjb/authlogic

ghost pushed a commit that referenced this pull request Apr 30, 2011

@ghost ghost merged commit 006f25a into binarylogic:master Apr 30, 2011

This issue was closed.

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