This commit is contained in:
albert
2010-10-08 18:42:26 -04:00
parent 6bc469b05d
commit f051e04550
88 changed files with 2865 additions and 699 deletions

View File

@@ -5,7 +5,7 @@ class CurrentUser
self.user = user
self.ip_addr = ip_addr
begin
yield
ensure
@@ -13,7 +13,7 @@ class CurrentUser
self.ip_addr = old_ip_addr
end
end
def self.user=(user)
Thread.current[:current_user] = user
end