Implement a method that converts table name to a, possibly namespaced, model class
Implement a method that converts table name to a, possibly namespaced, model class

- It works with classes nested at most one level deep. Making it allow any nesting level would make the computational complexity O(2^n) in the worst case (non-existent model) where n is the number of underscores in the table name.
- The conversion is ambiguous so the function has to make some arbitrary assumptions (see documentation included in the patch).
- A better solution would be to enumerate all descendants of ActiveRecord::Base. It could be made generic without the exponential complexity. The problem is that we would have to force Rails not to autoload model classes and eager load them instead.

grosser/gettext_i18n_rails,martinpovolny/gettext_i18n_rails,ritxi/gettext_i18n_rails,shkm/gettext_i18n_rails