Module: ApplicationInstanceUserConcern

Extended by:
ActiveSupport::Concern
Included in:
ApplicationController
Defined in:
app/controllers/concerns/application_instance_user_concern.rb

Instance Method Summary collapse

Instance Method Details

#current_instance_userObject


9
10
11
12
13
# File 'app/controllers/concerns/application_instance_user_concern.rb', line 9

def current_instance_user
  return nil unless current_user

  @current_instance_user ||= current_tenant.instance_users.find_by(user: current_user)
end