aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails/generators/channel
diff options
context:
space:
mode:
authorGadzhi Gadzhiev <inbox@resure.net>2016-03-08 15:30:12 +0300
committerGadzhi Gadzhiev <inbox@resure.net>2016-03-08 15:30:12 +0300
commit37606d016d9d1ed6cd0abc2dc63a49d8a63b018b (patch)
treee8c5ead58dc7034f16a1733f521cf78f4bdb1ac1 /actioncable/lib/rails/generators/channel
parenta38afb3e55e2dc4b33760321db51ccf8fa06b2c8 (diff)
downloadrails-37606d016d9d1ed6cd0abc2dc63a49d8a63b018b.tar.gz
rails-37606d016d9d1ed6cd0abc2dc63a49d8a63b018b.tar.bz2
rails-37606d016d9d1ed6cd0abc2dc63a49d8a63b018b.zip
Remove redundant regexp escapes in generators
Diffstat (limited to 'actioncable/lib/rails/generators/channel')
-rw-r--r--actioncable/lib/rails/generators/channel/channel_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/lib/rails/generators/channel/channel_generator.rb b/actioncable/lib/rails/generators/channel/channel_generator.rb
index 6debe40c91..d89ab45816 100644
--- a/actioncable/lib/rails/generators/channel/channel_generator.rb
+++ b/actioncable/lib/rails/generators/channel/channel_generator.rb
@@ -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.