Jan Svitok wrote:

> model = const_get(model_name.to_s.capitalize)

Excellent, thank you.