Class: Company

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/company.rb

Class Method Summary collapse

Class Method Details

.currentObject



6
7
8
# File 'app/models/company.rb', line 6

def current
  Thread.current[:current_company]
end

.current=(company) ⇒ Object



10
11
12
# File 'app/models/company.rb', line 10

def current=(company)
  Thread.current[:current_company] = company
end