Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix problem when running the typus generator without a database created #319

wants to merge 1 commit into


None yet
2 participants

timbica commented Nov 25, 2011

This fix complements the fix you did regarding the comments of user gamafranco in 14cf7cd#lib/generators/typus/config_generator.rb-P39

In my company we use a Rails template called Maven-Warrior (https://github.com/imaginary-cloud/Maven-Warrior).
In the template we run the typus generator without any table created (using a MySQL database configuration).
When the generator tries to create the YAML configuration files for the existing models (in this case we already have a User model created by Devise) we get an error telling that we don't have a connection to the database.
My push checks if a database connection exists!

Note: I don't know if it is good to include the "to_label" field in the defaults - why is that done?

@fesplugas fesplugas closed this Dec 6, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment