diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-13 02:57:00 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-13 02:57:00 +0900 |
commit | 8fcaf3c26cd83d181e108f686f0e002751e9a3b7 (patch) | |
tree | 76f74e4fd5e8d06300e5d1aaeeb77cf81260fc8e /railties/lib/rails/generators | |
parent | 047d4f260555b4c69fe6ae2d09d4a4cd95fad79a (diff) | |
parent | 886ac1c3087f8ac06bee371af54758fb02760e63 (diff) | |
download | rails-8fcaf3c26cd83d181e108f686f0e002751e9a3b7.tar.gz rails-8fcaf3c26cd83d181e108f686f0e002751e9a3b7.tar.bz2 rails-8fcaf3c26cd83d181e108f686f0e002751e9a3b7.zip |
Merge pull request #34691 from gmcgibbon/rm_helper_generator_suffix
Remove redundant suffixes on generated helpers.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/helper/helper_generator.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/helper/helper_generator.rb b/railties/lib/rails/generators/rails/helper/helper_generator.rb index 3837c10ca0..542eb4c9e8 100644 --- a/railties/lib/rails/generators/rails/helper/helper_generator.rb +++ b/railties/lib/rails/generators/rails/helper/helper_generator.rb @@ -10,6 +10,11 @@ module Rails end hook_for :test_framework + + private + def file_name + @_file_name ||= super.sub(/_helper\z/i, "") + end end end end |