summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-10 17:51:49 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-10 17:51:49 +0300
commita7be3dfa30a452b307d1fdc0b4157ecbe908da8d (patch)
treecde495aa94b979902836a1605c727ee5ac53d0ec /lib/api
parent772f2f1ac8aab40a2cd62f285af131eb61ad12bb (diff)
downloadgitlab-ce-a7be3dfa30a452b307d1fdc0b4157ecbe908da8d.tar.gz
Remove set of thread variables
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 654c1f62c6c..b6a5806d646 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -36,16 +36,6 @@ module API
end
end
- def set_current_user_for_thread
- Thread.current[:current_user] = current_user
-
- begin
- yield
- ensure
- Thread.current[:current_user] = nil
- end
- end
-
def user_project
@project ||= find_project(params[:id])
@project || not_found!