From af977ca677c2bf0ba4b1645de790033c085bc9de Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Tue, 15 Sep 2015 19:21:59 +0200 Subject: [PATCH] use in-memory store for local development --- lib/travis/api/app.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index f35c7a65..11bde1ea 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -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' ???