Ticket #4245: symlinked_plugin_generator_lookup_fix.diff
| File symlinked_plugin_generator_lookup_fix.diff, 0.8 kB (added by progrium@gmail.com, 3 years ago) |
|---|
-
railties/lib/rails_generator/lookup.rb
old new 101 101 if defined? ::RAILS_ROOT 102 102 sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators") 103 103 sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators") 104 sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/* */generators")104 sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/*/generators") 105 105 end 106 106 sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators") 107 107 sources << GemSource.new if Object.const_defined?(:Gem)