nofxx/symbolize — pull request #23 by johanlindblad (2011-12-09 12:16:38+00:00)
Title: Use model_name in <attribute>_text helper.

Currently, the helper uses `self.class` when looking up the translation key. When using single table inheritance, this means that you need to repeat your translations for all the inheriting models.

In my commit, I have changed this to `self.class.model_name` which by default makes no difference, but which lets you override `model_name` in the parent class if you wish, which will make all the inheriting models use the parent model's name for the translation lookup.

All tests pass.