Open-Source-Access-Control-.../app/models/user.rb

14 lines
701 B
Ruby
Raw Normal View History

2012-08-25 04:14:51 +00:00
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me, :name, :admin, :instructor, :active, :emergency_name, :emergency_phone, :current_skills, :desired_skills, :waiver, :emergency_email, :phone, :payment_method, :orientation, :member_level
2012-08-25 04:14:51 +00:00
has_many :cards
has_many :certifications, :through => :certifications_users
2012-08-25 04:14:51 +00:00
end