Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
402 B

require "configuration/configuration_service"
require "configuration/env_configuration_service"
# set RedisStore
if Rails.env.staging?
configuration_service = Configuration::EnvConfigurationService.new
redis_url = configuration_service.redis_uris.to_a[0][1]
Rack::MiniProfiler.config.storage_options = { url: redis_url }
Rack::MiniProfiler.config.storage = Rack::MiniProfiler::RedisStore
end