diff options
author | Gadzhi Gadzhiev <inbox@resure.net> | 2016-03-08 15:30:12 +0300 |
---|---|---|
committer | Gadzhi Gadzhiev <inbox@resure.net> | 2016-03-08 15:30:12 +0300 |
commit | 37606d016d9d1ed6cd0abc2dc63a49d8a63b018b (patch) | |
tree | e8c5ead58dc7034f16a1733f521cf78f4bdb1ac1 /railties/lib | |
parent | a38afb3e55e2dc4b33760321db51ccf8fa06b2c8 (diff) | |
download | rails-37606d016d9d1ed6cd0abc2dc63a49d8a63b018b.tar.gz rails-37606d016d9d1ed6cd0abc2dc63a49d8a63b018b.tar.bz2 rails-37606d016d9d1ed6cd0abc2dc63a49d8a63b018b.zip |
Remove redundant regexp escapes in generators
Diffstat (limited to 'railties/lib')
-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 |