rails/rails — pull request #8540 by slainer68 (2012-12-17 16:56:29+00:00)
Title: AM::Translation extract I18n lookup defaults in separate method

Many ActiveModel gems use human_attribute method for attribute localization.

Sometimes, I'd would like to retrieve the I18n default lookup array (ie. for debugging purpose in a console).

I think this process would be much easier if the lookup array generation is extracted in its own method...

Person.human_attribute_lookup_defaults('name')
# => [:"activemodel.attributes.person.name", :"attributes.name", "Name"]