Sha256: 72ded54dfdcb7e65708f9d4ff8b6da8bab5a4e24b71c7a7d47fd7a1ff99076ca
Contents?: true
Size: 512 Bytes
Versions: 7
Compression:
Stored size: 512 Bytes
Contents
module Kanaui class EngineController < ApplicationController layout :get_layout def get_layout layout ||= Kanaui.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) Kanaui.current_tenant_user.call(session, user) end end end
Version data entries
7 entries across 7 versions & 1 rubygems