Sha256: 19a8eaf66f1f4e37e70d52eda8030ba556eb42b3b57f93c86a378eeee062be21

Contents?: true

Size: 368 Bytes

Versions: 12

Compression:

Stored size: 368 Bytes

Contents

require 'devise/schema'

module Devise
  module Schema
    # Adds the required fields for cas_authenticatable to the schema.  Currently
    # this is just username (String).
    def cas_authenticatable
      if respond_to? :apply_devise_schema
        apply_devise_schema :username, String
      else
        apply_schema :username, String
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
devise_cas_authenticatable-1.0.1 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.1.1 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.1.0 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha13 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha12 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha11 lib/devise_cas_authenticatable/schema.rb
devise_bushido_authenticatable-1.0.0.alpha10 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha10 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha8 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha7 lib/devise_cas_authenticatable/schema.rb
devise_cas_authenticatable-1.0.0.alpha6 lib/devise_cas_authenticatable/schema.rb