diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-23 16:50:21 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-23 16:53:48 +0200 |
commit | 83f7fe2028df15e058205c93308c0e19abd7157a (patch) | |
tree | 44cb0dfdbc71c2af772617690338668712da776b /railties/lib/generator/base.rb | |
parent | 301c48c15cc6bf8d8fac3c22356eacce380f6fce (diff) | |
download | rails-83f7fe2028df15e058205c93308c0e19abd7157a.tar.gz rails-83f7fe2028df15e058205c93308c0e19abd7157a.tar.bz2 rails-83f7fe2028df15e058205c93308c0e19abd7157a.zip |
NamedBase.
Diffstat (limited to 'railties/lib/generator/base.rb')
-rw-r--r-- | railties/lib/generator/base.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/generator/base.rb b/railties/lib/generator/base.rb index c1452cdb7f..8e778e1d15 100644 --- a/railties/lib/generator/base.rb +++ b/railties/lib/generator/base.rb @@ -41,8 +41,7 @@ module Rails # def self.generator_name @generator_name ||= begin - klass_name = self.name - klass_name.gsub!(/^Rails::Generators::/, '') + klass_name = self.name.gsub(/^Rails::Generators::/, '') klass_name.gsub!(/Generator$/, '') klass_name.underscore end |