summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-05-01 13:39:22 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-05-01 13:39:22 +0000
commit87cb2fdfd19eae31804063af57b538610c8b774f (patch)
treeb7321d4ab0148a370ec0ae5787d310072c2a8d8d
parent8e50e4940b96642707a63413a320c97598183b9e (diff)
downloadredmine-87cb2fdfd19eae31804063af57b538610c8b774f.tar.gz
redmine-87cb2fdfd19eae31804063af57b538610c8b774f.zip
2.4-stable: revert r13114 (#16685)
git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@13121 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--Gemfile1
-rw-r--r--app/models/user.rb4
2 files changed, 2 insertions, 3 deletions
diff --git a/Gemfile b/Gemfile
index 434e94753..bdc39b3cb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -6,7 +6,6 @@ gem "jquery-rails", "~> 2.0.2"
gem "coderay", "~> 1.1.0"
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
gem "builder", "3.0.0"
-gem "request_store"
# Optional gem for LDAP authentication
group :ldap do
diff --git a/app/models/user.rb b/app/models/user.rb
index 827553fc7..9a20c4c67 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -607,11 +607,11 @@ class User < Principal
end
def self.current=(user)
- RequestStore.store[:current_user] = user
+ Thread.current[:current_user] = user
end
def self.current
- RequestStore.store[:current_user] ||= User.anonymous
+ Thread.current[:current_user] ||= User.anonymous
end
# Returns the anonymous user. If the anonymous user does not exist, it is created. There can be only