I have been searching high and low but I can’t find an elegant way to
map database column names to model names.
The idea is simple if I have a column named ‘CUSTOM_5’ I want this to
show up as "favorite_pet’.
So far all the suggestions I have seen are to create your custom
methods which is fine but a lot of work if you have to map most if not
all your fields.
Also creating getters and setters means you now have to add those
methods to the to_xml and to_json methods as well as excluding the
original field names.
Surely there is an easier way to handle this very common problem.