提交 b165d73f 编写于 作者: R Rafael França

Merge pull request #24062 from resure/redundant-escapes

Remove redundant regexp escapes in generators
......@@ -21,7 +21,7 @@ def create_channel_file
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 @@ def create_mailer_file
protected
def file_name
@_file_name ||= super.gsub(/\_mailer/i, '')
@_file_name ||= super.gsub(/_mailer/i, '')
end
end
end
......
......@@ -26,7 +26,7 @@ def formats
end
def file_name
@_file_name ||= super.gsub(/\_mailer/i, '')
@_file_name ||= super.gsub(/_mailer/i, '')
end
end
end
......
......@@ -19,7 +19,7 @@ def create_preview_files
protected
def file_name
@_file_name ||= super.gsub(/\_mailer/i, '')
@_file_name ||= super.gsub(/_mailer/i, '')
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册