Skip to content
Leandro Alves edited this page Apr 11, 2016 · 3 revisions

Class

  • It's the module that controls the sessions (logins)

Methods

  • 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.

Variables

  • 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.

Clone this wiki locally