Created
December 22, 2011 00:06
-
-
Save built/1508303 to your computer and use it in GitHub Desktop.
Session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def logged_in? | |
!! DB.execute("SELECT id FROM sessions WHERE session_key=? LIMIT 1", params[:session_key]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment