Get model class by name.
Get model class by name
Parameters:
the model name
12 13 14
# File 'lib/gunter/models.rb', line 12 def model(name) Gunter::Model.const_get(name.to_s.split('_').map(&:capitalize).join) end