aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2017-09-28 21:54:00 -0700
committerJeremy Daer <jeremydaer@gmail.com>2017-10-08 15:37:54 -0700
commit53c516d88d48bafee5bd125a368352dd94f5fdad (patch)
treefcf21f1bd6ef63146964fbb530cc7700d0176e75 /railties/lib/rails/generators/app_base.rb
parentf165628cdf9a6d857ea6eeca02ed6c950b250df5 (diff)
downloadrails-53c516d88d48bafee5bd125a368352dd94f5fdad.tar.gz
rails-53c516d88d48bafee5bd125a368352dd94f5fdad.tar.bz2
rails-53c516d88d48bafee5bd125a368352dd94f5fdad.zip
redis-rb 4.0 support
* Use `gem 'redis', '~> 4.0'` for new app Gemfiles * Loosen Action Cable redis-rb dep to `>= 3.3, < 5` * Bump redis-namespace for looser Redis version dep * Avoid using the underlying `redis.client` directly * Use `Redis.new` instead of `Redis.connect`
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r--railties/lib/rails/generators/app_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index c8688fb7f3..6fb4ea52b3 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -369,7 +369,7 @@ module Rails
return [] if options[:skip_action_cable]
comment = "Use Redis adapter to run Action Cable in production"
gems = []
- gems << GemfileEntry.new("redis", "~> 3.0", comment, {}, true)
+ gems << GemfileEntry.new("redis", "~> 4.0", comment, {}, true)
gems
end