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/generators | |
parent | 301c48c15cc6bf8d8fac3c22356eacce380f6fce (diff) | |
download | rails-83f7fe2028df15e058205c93308c0e19abd7157a.tar.gz rails-83f7fe2028df15e058205c93308c0e19abd7157a.tar.bz2 rails-83f7fe2028df15e058205c93308c0e19abd7157a.zip |
NamedBase.
Diffstat (limited to 'railties/lib/generator/generators')
-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 |