Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Avoid the view querying for current_user. #35

Open
richardkmichael opened this issue Dec 27, 2011 · 0 comments
Open

Avoid the view querying for current_user. #35

richardkmichael opened this issue Dec 27, 2011 · 0 comments

Comments

@richardkmichael
Copy link
Owner

The ApplicationController should setup @current_user to be used by views, instead of the def current_user ; ... ; end view helper which causes a query when the user is retrieved from the session (which is in the database).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant