HoboMigration generator ignores sub-directories of app/models (i.e. namespaced models)
Reported by Tim Chater | April 18th, 2008 @ 11:00 PM
If I run
script/generate hobo_model_resource secret::customer
it correctly namespaces the model Secret::Customer and correctly places it in app/models/secret/customer.rb.
However, running
script/geneate hobo_migration
from here produces Database and models match -- nothing to change - see pastie
Comments and changes to this ticket
-
Tom Locke April 21st, 2008 @ 03:03 PM
- State changed from new to resolved
The migration generator now loads all .rb files in app/models including sub-directories.
-
Tim Chater April 21st, 2008 @ 04:00 PM
I think this probably involves rewriting the load_rails_models method in migration_generator.rb to examine sub-dirs of app/models.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป