trabajo-afectivo/lib/application_handle_info.rb

10 lines
191 B
Ruby
Raw Normal View History

module ApplicationHandleInfo
def self.current
Thread.current[:application_handle] || 'unknown'
end
def self.current=(name)
Thread.current[:application_handle] = name
end
end