diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-08 21:58:48 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-08 21:58:48 -0300 |
commit | b165d73f2ccd421c9f3518ce9bf5bcb322440cb7 (patch) | |
tree | 0d7034a504b5d68a3dfa8296b7e14512df3402ea /railties | |
parent | da1fecce32db969a00fa7be600ace828fca89539 (diff) | |
parent | 37606d016d9d1ed6cd0abc2dc63a49d8a63b018b (diff) | |
download | rails-b165d73f2ccd421c9f3518ce9bf5bcb322440cb7.tar.gz rails-b165d73f2ccd421c9f3518ce9bf5bcb322440cb7.tar.bz2 rails-b165d73f2ccd421c9f3518ce9bf5bcb322440cb7.zip |
Merge pull request #24062 from resure/redundant-escapes
Remove redundant regexp escapes in generators
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/erb/mailer/mailer_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb index bc249aa5e5..7f00943d80 100644 --- a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb @@ -26,7 +26,7 @@ module Erb # :nodoc: end def file_name - @_file_name ||= super.gsub(/\_mailer/i, '') + @_file_name ||= super.gsub(/_mailer/i, '') end end end 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 343c8a3949..76a0b79654 100644 --- a/railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb +++ b/railties/lib/rails/generators/test_unit/mailer/mailer_generator.rb @@ -19,7 +19,7 @@ module TestUnit # :nodoc: protected def file_name - @_file_name ||= super.gsub(/\_mailer/i, '') + @_file_name ||= super.gsub(/_mailer/i, '') end end end |