diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 13:00:59 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:53 +0200 |
commit | 5ff80e743345e87209303a477a5caaca75c6cece (patch) | |
tree | 144f6a612d57162c9e548736804020a1fce091fc /railties/lib/generator/base.rb | |
parent | b6f826376add9cbbdfe75c1eb85394a2e6574c4c (diff) | |
download | rails-5ff80e743345e87209303a477a5caaca75c6cece.tar.gz rails-5ff80e743345e87209303a477a5caaca75c6cece.tar.bz2 rails-5ff80e743345e87209303a477a5caaca75c6cece.zip |
bin/rails uses the new generator.
Diffstat (limited to 'railties/lib/generator/base.rb')
-rw-r--r-- | railties/lib/generator/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generator/base.rb b/railties/lib/generator/base.rb index ea1e5a0402..5f51f93520 100644 --- a/railties/lib/generator/base.rb +++ b/railties/lib/generator/base.rb @@ -27,7 +27,7 @@ module Rails klass_name.gsub!(/^Rails::Generators::/, '') klass_name.gsub!(/([A-Z]+)([A-Z][a-z])/,'\1_\2') klass_name.gsub!(/([a-z\d])([A-Z])/,'\1_\2') - File.join(File.dirname(__FILE__), 'templates', klass_name.downcase) + File.expand_path(File.join(File.dirname(__FILE__), 'templates', klass_name.downcase)) end end |