I am trying to “soft-code” the model names in my app so I can use a
generic method call to achieve some results. Many of my modules have
the the following method:
same code goes here for every module and it returns an array.
Is there a way to replace the model name with a variable or something
else in such a way that the method can be called in a generic way?
my_array = @model_name.get_array