trabajo-afectivo/lib/user_info.rb

9 lines
165 B
Ruby
Raw Normal View History

2012-04-10 14:30:10 +00:00
module UserInfo
def self.current_user_id
2012-04-10 14:30:10 +00:00
Thread.current[:user_id]
end
def self.current_user_id=(user_id)
Thread.current[:user_id] = user_id
end
end