app/controllers/concerns/current_user_wrapper.rb
# Redefine current_user method which comes from monsoon_openstack_auth gem.
# This method wraps current_user and adds some details
# like email and full_name.
Redefine current_user method which comes from monsoon_openstack_auth gem.
This method wraps current_user and adds some details
like email and full_name.
Redefine current_user method which comes from monsoon_openstack_auth gem . This method wraps current_user and adds some details like email and full_name .
def current_user
    return nil if super.nil?
    if @current_user_wrapper.try(:token) == super.token
      return @current_user_wrapper
    end
    @current_user_wrapper = CurrentUserWrapper.new(super, session, service_user)
  end
def current_user return nil if super . nil? if @current_user_wrapper . try ( :token ) == super . token return @current_user_wrapper end @current_user_wrapper = CurrentUserWrapper . new ( super , session , service_user ) end
Redefine current_user method which comes from monsoon_openstack_auth gem.
Redefine current_user method which comes from monsoon_openstack_auth gem .
# byebug