diff options
Diffstat (limited to 'railties/lib/generator/generators/metal/metal_generator.rb')
-rw-r--r-- | railties/lib/generator/generators/metal/metal_generator.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/railties/lib/generator/generators/metal/metal_generator.rb b/railties/lib/generator/generators/metal/metal_generator.rb index d999bd89f7..ba062b30be 100644 --- a/railties/lib/generator/generators/metal/metal_generator.rb +++ b/railties/lib/generator/generators/metal/metal_generator.rb @@ -1,15 +1,7 @@ module Rails::Generators - class MetalGenerator < Base - argument :file_name, :type => :string - + class MetalGenerator < NamedBase def create_file template "metal.rb", "app/metal/#{file_name}.rb" end - - protected - - def class_name - file_name.classify - end end end |