Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-10 18:51:49 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-10 18:51:49 +0400
commita7be3dfa30a452b307d1fdc0b4157ecbe908da8d (patch)
treecde495aa94b979902836a1605c727ee5ac53d0ec /lib/gitlab/seeder.rb
parent772f2f1ac8aab40a2cd62f285af131eb61ad12bb (diff)
Remove set of thread variables
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab/seeder.rb')
-rw-r--r--lib/gitlab/seeder.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb
index 39de1223b18..31aa3528c4c 100644
--- a/lib/gitlab/seeder.rb
+++ b/lib/gitlab/seeder.rb
@@ -9,12 +9,7 @@ module Gitlab
end
def self.by_user(user)
- begin
- Thread.current[:current_user] = user
- yield
- ensure
- Thread.current[:current_user] = nil
- end
+ yield
end
def self.mute_mailer