lib/rack/session/rails.rb in redis-store-1.0.0.beta1 vs lib/rack/session/rails.rb in redis-store-1.0.0.beta2

- old
+ new

@@ -57,14 +57,14 @@ end end end end -unless defined?(ActionDispatch) # rails 2.3.x - class ActionController::Session::RedisSessionStore < ActionController::Session::AbstractStore +if ::RedisStore.rails3? + class ActionDispatch::Session::RedisSessionStore < ActionDispatch::Session::AbstractStore include RedisStore::Rack::Session::Rails end -else # rails 3.x - class ActionDispatch::Session::RedisSessionStore < ActionDispatch::Session::AbstractStore +else + class ActionController::Session::RedisSessionStore < ActionController::Session::AbstractStore include RedisStore::Rack::Session::Rails end end