Skip to content
gustavonascimento edited this page Apr 10, 2016 · 3 revisions

Class

  • This class receives the information from user.

Methods

  • def User.new_remember_token

  • Generates a token for password.

  • def User.digest(token)

  • Compile the token.

Variables

  • String login

  • User name.

  • String password_digest

  • Password of the user, encrypted.

  • String remeber_token

  • Unique token for each session of the user.

  • String type

  • Type of user, common user and administrator.

Clone this wiki locally