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:
commit
b165d73f2c
4 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue