Sha256: 2261b647829baffabc8ada6f27aa4b6191109159a4c89c5e4e137a63211eae1c
Contents?: true
Size: 539 Bytes
Versions: 6
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true module Avatax class EngineController < ApplicationController layout :get_layout def get_layout layout ||= Avatax.config[:layout] end 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 end end
Version data entries
6 entries across 6 versions & 1 rubygems