summaryrefslogtreecommitdiff
path: root/lib/gitlab/request_context.rb
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-02-20 15:09:05 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2017-03-06 15:41:25 +0100
commit0ef8a643489ad1a3da4431155326f0a6e206d870 (patch)
treebeb7bceb362f627e4864075e76d05e81f9b743da /lib/gitlab/request_context.rb
parent9cc0ff8f468c54e23172492d97f6d9b428d3ad2e (diff)
downloadgitlab-ce-0ef8a643489ad1a3da4431155326f0a6e206d870.tar.gz
Remove unecessary calls to limit_user!, UniqueIps Middleware, and address MR review
- cleanup formating in haml - clarify time window is in seconds - cleanup straneous chunks in db/schema - rename count_uniqe_ips to update_and_return_ips_count - other
Diffstat (limited to 'lib/gitlab/request_context.rb')
-rw-r--r--lib/gitlab/request_context.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/gitlab/request_context.rb b/lib/gitlab/request_context.rb
index 36a5d94d98a..548adf4775a 100644
--- a/lib/gitlab/request_context.rb
+++ b/lib/gitlab/request_context.rb
@@ -14,7 +14,6 @@ module Gitlab
end
def call(env)
- raise RequestStoreNotActive.new unless RequestStore.active?
req = Rack::Request.new(env)
RequestStore[:client_ip] = req.ip