I have data, :current_user, in my Application Controller:
class ApplicationController < ActionController::Base
return @current_associate if defined?(@current_associate)
@current_associate = current_associate_session &&
, so it is inherited by the controllers that inherit
I have a module, which is 'required' by several controllers who
inherit from ApplicationController. One of controllers is descended
from Application Controller -- another is not (it is descended from
RuportController). The latter needs to access :current_user.
What is the best way to accomplish this? (I have tried
setting :current_user in the module, so that the controller that is
derived from RuportController might be able to call the module to
obtain it, with no luck).
Ultimately, I need to get :current_user into the controller derived
from RuportController -- but how?