Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created October 30, 2010 15:32
Show Gist options
  • Save rippinrobr/655412 to your computer and use it in GitHub Desktop.
Save rippinrobr/655412 to your computer and use it in GitHub Desktop.
ModelGenerator.generate method
def generate(class_name, fields_to_gen)
class_obj = gen_class_type("Models", class_name)
tables = create_properties(class_obj, fields_to_gen)
model_type = class_obj.CreateType
puts "Done!"
[ model_type, tables ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment