Class: Company
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Company
- Defined in:
- app/models/company.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
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 |