diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-26 10:40:02 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-26 11:59:14 +0200 |
commit | 2f3681dfc24e51698b9b900a5d03950da4508d2c (patch) | |
tree | 2146601abf73dd53441764fc8845c75795a49bac /railties/lib/generators/rails/helper | |
parent | 6bd101188e3396317d93d2d0692587d577ad9662 (diff) | |
download | rails-2f3681dfc24e51698b9b900a5d03950da4508d2c.tar.gz rails-2f3681dfc24e51698b9b900a5d03950da4508d2c.tar.bz2 rails-2f3681dfc24e51698b9b900a5d03950da4508d2c.zip |
Clean up class collisions check and a class method helper.
Diffstat (limited to 'railties/lib/generators/rails/helper')
-rw-r--r-- | railties/lib/generators/rails/helper/helper_generator.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/generators/rails/helper/helper_generator.rb b/railties/lib/generators/rails/helper/helper_generator.rb index 6f741b0978..2b84581025 100644 --- a/railties/lib/generators/rails/helper/helper_generator.rb +++ b/railties/lib/generators/rails/helper/helper_generator.rb @@ -1,9 +1,7 @@ module Rails module Generators class HelperGenerator < NamedBase - def check_class_collisions - class_collisions "#{class_name}Helper" - end + check_class_collision :suffix => "Helper" def create_helper_files template 'helper.rb', File.join('app/helpers', class_path, "#{file_name}_helper.rb") |