K
Kairi Zikpin
Hi all,
I'm fairly new to Ruby/Rails but not new to development.
In Java and .NET I can associate user logon credentials with the active
thread (or thread local for Java) so that all layers of my application
can have access to this without the need to pass it around as parameters.
Can the same be done in Ruby/Rails?
eg, user logs on with employee privileges. I want the service layer
(model) and the controller to have access to those privileges, so I need
a central location to store it such that both layers can access to it.
thx in advance
Kairi
I'm fairly new to Ruby/Rails but not new to development.
In Java and .NET I can associate user logon credentials with the active
thread (or thread local for Java) so that all layers of my application
can have access to this without the need to pass it around as parameters.
Can the same be done in Ruby/Rails?
eg, user logs on with employee privileges. I want the service layer
(model) and the controller to have access to those privileges, so I need
a central location to store it such that both layers can access to it.
thx in advance
Kairi