Is there a way to put a model into a module ?

Hi all,

A friend and I want to generate a model based on a table named
'modules', I know that "Module" is a class in Ruby, and so, I would
like to know how to generate this model.


Best Regards,


You'll have to pick another name for the class, then override the
table name so somthing like

class ModuleModel < ActiveRecord::Base

   set_table_name "modules"