Class: Iron::Current
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- Iron::Current
- Defined in:
- app/models/iron/current.rb
Instance Method Summary collapse
Instance Method Details
#account ⇒ Object
20 21 22 |
# File 'app/models/iron/current.rb', line 20 def account super || (self.account = Account.first) end |
#integration ⇒ Object
16 17 18 |
# File 'app/models/iron/current.rb', line 16 def integration user&.integration end |
#person ⇒ Object
12 13 14 |
# File 'app/models/iron/current.rb', line 12 def person user&.person end |
#session=(value) ⇒ Object
7 8 9 10 |
# File 'app/models/iron/current.rb', line 7 def session=(value) super(value) self.user = value&.user end |