Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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)

teh patch

  • railties/lib/rails_generator/lookup.rb

    old new  
    101101          if defined? ::RAILS_ROOT 
    102102            sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators") 
    103103            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") 
    105105          end 
    106106          sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators") 
    107107          sources << GemSource.new if Object.const_defined?(:Gem)