class User < ActiveRecord::Base

User are author. They have administrative privileges on the blog. They can access the administrative panel and can create/edit/delete posts, tags and titles.

Instance methods

  1. password ()
    Returns an instance of BCrypt::Password that represents user's password hash. This is used internally to securely checks if the password matches upon login.
  2. email ()
    Returns user's email.