mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			350 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			350 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
module Current
 | 
						|
  thread_mattr_accessor :user
 | 
						|
  thread_mattr_accessor :account
 | 
						|
  thread_mattr_accessor :account_user
 | 
						|
  thread_mattr_accessor :executed_by
 | 
						|
  thread_mattr_accessor :contact
 | 
						|
 | 
						|
  def self.reset
 | 
						|
    Current.user = nil
 | 
						|
    Current.account = nil
 | 
						|
    Current.account_user = nil
 | 
						|
    Current.executed_by = nil
 | 
						|
    Current.contact = nil
 | 
						|
  end
 | 
						|
end
 |