This project is archived and is in readonly mode.
Rail3 will not load generators that are located in gems that are loaded using bundler
-
José Valim
- State changed from new to open
- Assigned user set to José Valim
-
Rizwan Reza
- Tag changed from generators, patch, rails3 to generators, patch, rails3, review
+1 Applies cleanly on master. All tests in railties also pass.
By the way, I don't know if it really needs tests, but the patch above doesn't include one.
-
José Valim
Thanks guys. I just have to check with Yehuda if they plan to support Gem.loaded_specs or I will have to use Gem.path as Josh proposed.
-
José Valim
- State changed from open to resolved
Just have generators in your load path and it will work. If you want to invoke to "script/generate foo", have "generators/foo_generator" in your load path and it will be picked.
