>
> Thanks, Bruno, I will try this. I am curious to learn more. Could you 
> spend a moment to explain why it works this way? For instance, why 
> can't the module import current and set current.auth=auth?
>

current.auth = auth

assumes the "auth" on the right side of that assignment has been defined 
within the module, which obviously cannot be the case -- the reason we need 
to put "auth" in "current" to begin with is that it is not defined within 
the module.

The other option is to make the "auth" object an argument of your module 
function and pass it to that function when you call it from your model or 
controller.

Anthony

Reply via email to