Skip to content

Commit 5513e8f

Browse files
committed
use + teken
1 parent 79b1de6 commit 5513e8f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

config/application.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ class Application < Rails::Application
2828
config.i18n.default_locale = :nl
2929
config.i18n.fallbacks = [:nl]
3030

31-
if ENV['REDIS_HOST'].present?
32-
cable_url = config_for(:cable)['url']
33-
config.cache_store :redis_cache_store, {
34-
url: cable_url,
35-
pool: { size: ENV.fetch('RAILS_MAX_THREADS', 5).to_i, timeout: 5 }
36-
}
37-
else
38-
config.cache_store :memory_store
39-
end
31+
config.cache_store = if ENV['REDIS_HOST'].present?
32+
cable_url = config_for(:cable)['url']
33+
[:redis_cache_store, {
34+
url: cable_url,
35+
pool: { size: ENV.fetch('RAILS_MAX_THREADS', 5).to_i, timeout: 5 }
36+
}]
37+
else
38+
:memory_store
39+
end
4040

4141
config.active_job.queue_adapter = :sidekiq
4242

0 commit comments

Comments
 (0)