We have exports. In order to create those exports we have a list(basically a big constant hash) of column names.
def columns
{ nm: 'person name',
age: 'person age',
sex: 'person gender'...}
end
note: the actual hash is about 20-60 elements long depending of the export type and that there are multiple exports.
The question is where should this hash be placed ?
From my research I found a few options:
it seems that this gem: https://github.com/rubyconfig/config would do the trick. but it's purpose seem to be a bit removed from my own. Taking that idea and creating a simple .yml file would be better. But then arises the question where should this .yml be placed in the context of the rails file structure ?
Another option would be to create a class or a module with the sole purpose of returning this hash. Then again where should this class/module be placed in the context of the rails file structure ?
What would be the most rails way to do this?