1 class User < ActiveRecord::Base
2 # Include default devise modules. Others available are:
3 # :token_authenticatable, :confirmable,
4 # :lockable, :timeoutable and :omniauthable
5 devise :database_authenticatable, :registerable, :rememberable, :trackable
7 # Setup accessible (or protected) attributes for your model
8 attr_accessible :username, :password, :password_confirmation, :remember_me
9 # attr_accessible :title, :body
11 has_many :links, dependent: :destroy