Sha256: a31b97e218d1aac23dd7f1a3fa4c7b501eddaa309e61ab50edee618fbd0f9ede

Contents?: true

Size: 693 Bytes

Versions: 14

Compression:

Stored size: 693 Bytes

Contents

require "action_controller/session/redis_session_store"

module DeviseCasAuthenticatable
  module SingleSignOut
    module RedisSessionStore

      include DeviseCasAuthenticatable::SingleSignOut::SetSession

      def destroy_session(sid)
        @pool.del(sid)
      end
    end
  end
end


if ::Redis::Store.rails3?
  ActionDispatch::Session::RedisSessionStore.class_eval do
    include DeviseCasAuthenticatable::SingleSignOut::RedisSessionStore
    alias_method_chain :set_session, :storage
  end
else
  ActionController::Session::RedisSessionStore.class_eval do
    include DeviseCasAuthenticatable::SingleSignOut::RedisSessionStore
    alias_method_chain :set_session, :storage
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
devise_cas_authenticatable-1.0.1 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.1.4 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.1.3 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.1.2 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cloudfuji_authenticatable-1.0.5 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cloudfuji_authenticatable-1.0.4 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.1.1 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.1.0 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_bushido_authenticatable-1.0.3 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_bushido_authenticatable-1.0.2 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_bushido_authenticatable-1.0.1 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.0.0 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.0.0.alpha13 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
devise_cas_authenticatable-1.0.0.alpha12 lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb