diff options
author | Azul <azul@leap.se> | 2012-10-05 13:00:52 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-10-05 13:00:52 +0200 |
commit | 6cf3dacd4a4d0f30a41c6a75658443ce6192e750 (patch) | |
tree | 2eaea784e97de9652ce8c39ab2b4db9e32de5d1e /users/app/models | |
parent | 5fe296eb9f9b216e05921ac0c41f5defc1cc2054 (diff) | |
parent | c89610d1aad8500b4f7058c970bb07a60a55a5ce (diff) |
Merge remote-tracking branch 'origin/master' into develop
Conflicts:
users/app/controllers/sessions_controller.rb
Diffstat (limited to 'users/app/models')
-rw-r--r-- | users/app/models/user.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb index fa64f42..95ee810 100644 --- a/users/app/models/user.rb +++ b/users/app/models/user.rb @@ -46,4 +46,11 @@ class User < CouchRest::Model::Base password_verifier.hex end + def self.current + Thread.current[:user] + end + def self.current=(user) + Thread.current[:user] = user + end + end |