diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-23 19:20:01 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 02:11:40 +0900 |
commit | d1daf4c31301f5f5917b877fd63a817f5f4608ed (patch) | |
tree | f05de4a1df65a5bece5463590e3cd846cc57432a /railties/lib/rails/generators/test_unit/mailer | |
parent | 6b049057f0e7b21235ee88900d56f99ac527eecf (diff) | |
download | rails-d1daf4c31301f5f5917b877fd63a817f5f4608ed.tar.gz rails-d1daf4c31301f5f5917b877fd63a817f5f4608ed.tar.bz2 rails-d1daf4c31301f5f5917b877fd63a817f5f4608ed.zip |
Privatize unneededly protected methods in Railties
Diffstat (limited to 'railties/lib/rails/generators/test_unit/mailer')
-rw-r--r-- | railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb b/railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb index 806279788e..67bff8e4f9 100644 --- a/railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb +++ b/railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb @@ -17,7 +17,7 @@ module TestUnit # :nodoc: template "preview.rb", File.join("test/mailers/previews", class_path, "#{file_name}_mailer_preview.rb") end - protected + private def file_name @_file_name ||= super.gsub(/_mailer/i, "") end |