Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
CASClient::UserAPI
Defined in:
lib/generators/templates/user.rb

Class Method Summary collapse

Methods included from CASClient::UserAPI

#cas_create, #cas_password, #cas_password=, #cas_password_confirmation, #cas_password_confirmation=, #cas_reset_password, #cas_retrieve_attributes, #cas_update_attributes, included

Class Method Details

.cas_mapObject

after_create :cas_create after_save :cas_update_attributes



7
8
9
10
11
12
13
14
15
# File 'lib/generators/templates/user.rb', line 7

def self.cas_map
  {
    :uuid        => :username,
    :first_name  => :firstname,
    :middle_name => :middlename,
    :last_name   => :lastname,
    :email       => :email_address
  }
end