Class: Avatax::EngineController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Avatax::EngineController
- Defined in:
- app/controllers/avatax/engine_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#current_tenant_user ⇒ Object
11 12 13 14 15 16 |
# File 'app/controllers/avatax/engine_controller.rb', line 11 def current_tenant_user # If the rails application on which that engine is mounted defines such method (Devise), we extract the current user, # if not we default to nil, and serve our static mock configuration user = current_user if respond_to?(:current_user) Avatax.current_tenant_user.call(session, user) end |