[Rails] Re: Re: current_user Authlogic & Service.rb

2010-04-04 Thread Liquid Fury
> > Why do you need the current user in the model? > > Colin I don't need it in the model. I need it in a service class. When remoting from as3, I can only call functions defined in such a class. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscr

[Rails] Re: current_user Authlogic & Service.rb

2010-04-03 Thread Liquid Fury
Unfortunately not. There are many posts regarding the wrongness of passing a variable to a model for example (which makes sense) and I just assume the same wrongness in our case - however no suggested solution. Just for fun I stuffed some of the user info into a global in the user sessions con

[Rails] current_user Authlogic & Service.rb

2010-03-19 Thread Liquid Fury
Hi, I am using Authlogic & Weborb to remote from as3. Is it possible to access current_user, which is defined in a helper method in the application controller, in a Service class. Thank you in advance, John. -- Posted via http://www.ruby-forum.com/. -- You received this message because you a