I have a string containing a set of ActiveRecord models and I would like to do the same query for every model passed as string.
model_type = 'Comment'
id = 1
record = model_type.find(id)
model_type = 'Post'
id = 1
record = model_type.find(id)
How can I do that?