Restful_auth - current_user in models

Is it possible to reference the current_user object that
restful_authentication creates when you login, in a model?

I’m trying to move some Find methods into my models, but any reference
to current_user returns “method not found” error… I tried
User.current_user, but that also fails.

Is it just not possible to have sessions references in your model?

U need to have include restful auth statement in ur app.rb. Then u
will be able to acess current user I’d

Sent from my iPhone

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs