Created
October 30, 2010 15:32
-
-
Save rippinrobr/655412 to your computer and use it in GitHub Desktop.
ModelGenerator.generate method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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