1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24062 from resure/redundant-escapes

Remove redundant regexp escapes in generators
This commit is contained in:
Rafael França 2016-03-08 21:58:48 -03:00
commit b165d73f2c
4 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ module Rails
protected
def file_name
@_file_name ||= super.gsub(/\_channel/i, '')
@_file_name ||= super.gsub(/_channel/i, '')
end
# FIXME: Change these files to symlinks once RubyGems 2.5.0 is required.

View file

@ -15,7 +15,7 @@ module Rails
protected
def file_name
@_file_name ||= super.gsub(/\_mailer/i, '')
@_file_name ||= super.gsub(/_mailer/i, '')
end
end
end

View file

@ -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

View file

@ -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