-
Notifications
You must be signed in to change notification settings - Fork 9
Session Helper
Leandro Alves edited this page Apr 11, 2016
·
3 revisions
- It's the module that controls the sessions (logins)
-
def sign_in user
-
Sign in using the login information.
-
def current_user=(user)
-
Makes sure that the user who is logged is the one meant to be logged .
-
def authorize
-
Checks if the user is logged.
-
def sign_out
-
Signs out the user.
-
user
-
Stores user information.
-
current_user
-
Stores user that is logged in.
-
remember_token
-
Stores the token of the login.
-
cookies
-
Makes sure that the users token are not logged out of the system.