Module: Devise::Schema

Defined in:
lib/devise_cas_authenticatable/schema.rb

Instance Method Summary collapse

Instance Method Details

#cas_authenticatableObject

Adds the required fields for cas_authenticatable to the schema. Currently this is just username (String).



7
8
9
10
11
12
13
# File 'lib/devise_cas_authenticatable/schema.rb', line 7

def cas_authenticatable
  if respond_to? :apply_devise_schema
    apply_devise_schema :username, String
  else
    apply_schema :username, String
  end
end