diff options
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 |