use in-memory store for local development

This commit is contained in:
Konstantin Haase 2015-09-15 19:21:59 +02:00
parent 3e0423aae3
commit af977ca677

View File

@ -127,6 +127,8 @@ module Travis::Api
failover: true,
socket_timeout: 1.5,
socket_failure_delay: 0.2)
else
Rack::Attack.cache.store = ActiveSupport::Cache::MemoryStore.new
end
use Travis::Api::App::Cors # if Travis.env == 'development' ???