This commit is contained in:
albert
2010-08-18 18:44:18 -04:00
parent 5610731b35
commit 694b6f0813
13 changed files with 1018 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
class CurrentUser
def self.user=(user)
Thread.current[:current_user] = user
end
def self.ip_addr=(ip_addr)
Thread.current[:current_ip_addr] = ip_addr
end
def self.user
Thread.current[:current_user]
end
def self.ip_addr
Thread.current[:current_ip_addr]
end
end